Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg
nutanix.getPcBackupTargetV2
Explore with Pulumi AI
Retrieves the backup targets (cluster or object store) from a domain manager and returns the backup configuration and lastSyncTimestamp parameter to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const example = nutanix.getPcBackupTargetV2({
domainManagerExtId: "75dde184-3a0e-4f59-a185-03ca1efead17",
extId: "00062d3d-5d07-0da6-0000-000000028f57",
});
import pulumi
import pulumi_nutanix as nutanix
example = nutanix.get_pc_backup_target_v2(domain_manager_ext_id="75dde184-3a0e-4f59-a185-03ca1efead17",
ext_id="00062d3d-5d07-0da6-0000-000000028f57")
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nutanix.LookupPcBackupTargetV2(ctx, &nutanix.LookupPcBackupTargetV2Args{
DomainManagerExtId: "75dde184-3a0e-4f59-a185-03ca1efead17",
ExtId: "00062d3d-5d07-0da6-0000-000000028f57",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var example = Nutanix.GetPcBackupTargetV2.Invoke(new()
{
DomainManagerExtId = "75dde184-3a0e-4f59-a185-03ca1efead17",
ExtId = "00062d3d-5d07-0da6-0000-000000028f57",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetPcBackupTargetV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NutanixFunctions.getPcBackupTargetV2(GetPcBackupTargetV2Args.builder()
.domainManagerExtId("75dde184-3a0e-4f59-a185-03ca1efead17")
.extId("00062d3d-5d07-0da6-0000-000000028f57")
.build());
}
}
variables:
example:
fn::invoke:
function: nutanix:getPcBackupTargetV2
arguments:
domainManagerExtId: 75dde184-3a0e-4f59-a185-03ca1efead17
extId: 00062d3d-5d07-0da6-0000-000000028f57
Using getPcBackupTargetV2
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPcBackupTargetV2(args: GetPcBackupTargetV2Args, opts?: InvokeOptions): Promise<GetPcBackupTargetV2Result>
function getPcBackupTargetV2Output(args: GetPcBackupTargetV2OutputArgs, opts?: InvokeOptions): Output<GetPcBackupTargetV2Result>
def get_pc_backup_target_v2(domain_manager_ext_id: Optional[str] = None,
ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPcBackupTargetV2Result
def get_pc_backup_target_v2_output(domain_manager_ext_id: Optional[pulumi.Input[str]] = None,
ext_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPcBackupTargetV2Result]
func LookupPcBackupTargetV2(ctx *Context, args *LookupPcBackupTargetV2Args, opts ...InvokeOption) (*LookupPcBackupTargetV2Result, error)
func LookupPcBackupTargetV2Output(ctx *Context, args *LookupPcBackupTargetV2OutputArgs, opts ...InvokeOption) LookupPcBackupTargetV2ResultOutput
> Note: This function is named LookupPcBackupTargetV2
in the Go SDK.
public static class GetPcBackupTargetV2
{
public static Task<GetPcBackupTargetV2Result> InvokeAsync(GetPcBackupTargetV2Args args, InvokeOptions? opts = null)
public static Output<GetPcBackupTargetV2Result> Invoke(GetPcBackupTargetV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPcBackupTargetV2Result> getPcBackupTargetV2(GetPcBackupTargetV2Args args, InvokeOptions options)
public static Output<GetPcBackupTargetV2Result> getPcBackupTargetV2(GetPcBackupTargetV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getPcBackupTargetV2:getPcBackupTargetV2
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Manager stringExt Id - -(Required) A unique identifier for the domain manager.
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- Domain
Manager stringExt Id - -(Required) A unique identifier for the domain manager.
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- domain
Manager StringExt Id - -(Required) A unique identifier for the domain manager.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- domain
Manager stringExt Id - -(Required) A unique identifier for the domain manager.
- ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- domain_
manager_ strext_ id - -(Required) A unique identifier for the domain manager.
- ext_
id str - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- domain
Manager StringExt Id - -(Required) A unique identifier for the domain manager.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
getPcBackupTargetV2 Result
The following output properties are available:
- Backup
Pause stringReason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- Domain
Manager stringExt Id - Ext
Id string - Cluster UUID of a remote cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Backup boolPaused - Whether the backup is paused on the given cluster or not.
- Last
Sync stringTime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Pc Backup Target V2Link> - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- Locations
List<Piers
Karsenbarg. Nutanix. Outputs. Get Pc Backup Target V2Location> - Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
- Backup
Pause stringReason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- Domain
Manager stringExt Id - Ext
Id string - Cluster UUID of a remote cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Backup boolPaused - Whether the backup is paused on the given cluster or not.
- Last
Sync stringTime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- Links
[]Get
Pc Backup Target V2Link - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- Locations
[]Get
Pc Backup Target V2Location - Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
- backup
Pause StringReason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- domain
Manager StringExt Id - ext
Id String - Cluster UUID of a remote cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Backup BooleanPaused - Whether the backup is paused on the given cluster or not.
- last
Sync StringTime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- links
List<Get
Pc Backup Target V2Link> - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- locations
List<Get
Pc Backup Target V2Location> - Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
- backup
Pause stringReason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- domain
Manager stringExt Id - ext
Id string - Cluster UUID of a remote cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Backup booleanPaused - Whether the backup is paused on the given cluster or not.
- last
Sync stringTime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- links
Get
Pc Backup Target V2Link[] - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- locations
Get
Pc Backup Target V2Location[] - Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id string - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
- backup_
pause_ strreason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- domain_
manager_ strext_ id - ext_
id str - Cluster UUID of a remote cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
backup_ boolpaused - Whether the backup is paused on the given cluster or not.
- last_
sync_ strtime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- links
Sequence[Get
Pc Backup Target V2Link] - A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- locations
Sequence[Get
Pc Backup Target V2Location] - Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant_
id str - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
- backup
Pause StringReason - Specifies a reason why the backup might have paused. This will be empty if the isBackupPaused field is false.
- domain
Manager StringExt Id - ext
Id String - Cluster UUID of a remote cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Backup BooleanPaused - Whether the backup is paused on the given cluster or not.
- last
Sync StringTime - Represents the time when the domain manager was last synchronized or copied its configuration data to the backup target. This field is updated every 30 minutes.
- links List<Property Map>
- A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
- locations List<Property Map>
- Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
Supporting Types
GetPcBackupTargetV2Link
GetPcBackupTargetV2Location
- Cluster
Locations List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Cluster Location> - A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store List<PiersLocations Karsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Object Store Location> - Currently representing the build information to be used for the cluster creation.
- Cluster
Locations []GetPc Backup Target V2Location Cluster Location - A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store []GetLocations Pc Backup Target V2Location Object Store Location - Currently representing the build information to be used for the cluster creation.
- cluster
Locations List<GetPc Backup Target V2Location Cluster Location> - A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store List<GetLocations Pc Backup Target V2Location Object Store Location> - Currently representing the build information to be used for the cluster creation.
- cluster
Locations GetPc Backup Target V2Location Cluster Location[] - A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store GetLocations Pc Backup Target V2Location Object Store Location[] - Currently representing the build information to be used for the cluster creation.
- cluster_
locations Sequence[GetPc Backup Target V2Location Cluster Location] - A boolean value indicating whether to enable lockdown mode for a cluster.
- object_
store_ Sequence[Getlocations Pc Backup Target V2Location Object Store Location] - Currently representing the build information to be used for the cluster creation.
- cluster
Locations List<Property Map> - A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store List<Property Map>Locations - Currently representing the build information to be used for the cluster creation.
GetPcBackupTargetV2LocationClusterLocation
- Configs
List<Piers
Karsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Cluster Location Config> - Cluster reference of the remote cluster to be connected.
- Configs
[]Get
Pc Backup Target V2Location Cluster Location Config - Cluster reference of the remote cluster to be connected.
- configs
List<Get
Pc Backup Target V2Location Cluster Location Config> - Cluster reference of the remote cluster to be connected.
- configs
Get
Pc Backup Target V2Location Cluster Location Config[] - Cluster reference of the remote cluster to be connected.
- configs
Sequence[Get
Pc Backup Target V2Location Cluster Location Config] - Cluster reference of the remote cluster to be connected.
- configs List<Property Map>
- Cluster reference of the remote cluster to be connected.
GetPcBackupTargetV2LocationClusterLocationConfig
GetPcBackupTargetV2LocationObjectStoreLocation
- Backup
Policies List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Object Store Location Backup Policy> - -(Optional) Backup policy for the object store provided.
- Provider
Configs List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Object Store Location Provider Config> - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- Backup
Policies []GetPc Backup Target V2Location Object Store Location Backup Policy - -(Optional) Backup policy for the object store provided.
- Provider
Configs []GetPc Backup Target V2Location Object Store Location Provider Config - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies List<GetPc Backup Target V2Location Object Store Location Backup Policy> - -(Optional) Backup policy for the object store provided.
- provider
Configs List<GetPc Backup Target V2Location Object Store Location Provider Config> - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies GetPc Backup Target V2Location Object Store Location Backup Policy[] - -(Optional) Backup policy for the object store provided.
- provider
Configs GetPc Backup Target V2Location Object Store Location Provider Config[] - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup_
policies Sequence[GetPc Backup Target V2Location Object Store Location Backup Policy] - -(Optional) Backup policy for the object store provided.
- provider_
configs Sequence[GetPc Backup Target V2Location Object Store Location Provider Config] - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies List<Property Map> - -(Optional) Backup policy for the object store provided.
- provider
Configs List<Property Map> - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
GetPcBackupTargetV2LocationObjectStoreLocationBackupPolicy
- Rpo
In intMinutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
- Rpo
In intMinutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
- rpo
In IntegerMinutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
- rpo
In numberMinutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
- rpo_
in_ intminutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
- rpo
In NumberMinutes - RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
GetPcBackupTargetV2LocationObjectStoreLocationProviderConfig
- Bucket
Name string - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- Credentials
List<Piers
Karsenbarg. Nutanix. Inputs. Get Pc Backup Target V2Location Object Store Location Provider Config Credential> - Secret credentials model for the object store containing access key ID and secret access key.
- Region string
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
- Bucket
Name string - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- Credentials
[]Get
Pc Backup Target V2Location Object Store Location Provider Config Credential - Secret credentials model for the object store containing access key ID and secret access key.
- Region string
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
- bucket
Name String - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
List<Get
Pc Backup Target V2Location Object Store Location Provider Config Credential> - Secret credentials model for the object store containing access key ID and secret access key.
- region String
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
- bucket
Name string - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
Get
Pc Backup Target V2Location Object Store Location Provider Config Credential[] - Secret credentials model for the object store containing access key ID and secret access key.
- region string
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
- bucket_
name str - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
Sequence[Get
Pc Backup Target V2Location Object Store Location Provider Config Credential] - Secret credentials model for the object store containing access key ID and secret access key.
- region str
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
- bucket
Name String - The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials List<Property Map>
- Secret credentials model for the object store containing access key ID and secret access key.
- region String
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- The region name of the object store endpoint where backup data of domain manager is stored. Default is
GetPcBackupTargetV2LocationObjectStoreLocationProviderConfigCredential
- Access
Key stringId - Access key ID for the object store provided for backup target.
- Secret
Access stringKey - Secret access key for the object store provided for backup target.
- Access
Key stringId - Access key ID for the object store provided for backup target.
- Secret
Access stringKey - Secret access key for the object store provided for backup target.
- access
Key StringId - Access key ID for the object store provided for backup target.
- secret
Access StringKey - Secret access key for the object store provided for backup target.
- access
Key stringId - Access key ID for the object store provided for backup target.
- secret
Access stringKey - Secret access key for the object store provided for backup target.
- access_
key_ strid - Access key ID for the object store provided for backup target.
- secret_
access_ strkey - Secret access key for the object store provided for backup target.
- access
Key StringId - Access key ID for the object store provided for backup target.
- secret
Access StringKey - Secret access key for the object store provided for backup target.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.