nutanix.PcRestoreSourceV2
Explore with Pulumi AI
The restore source is auto-deleted after sometime, nutanix.PcRestoreSourceV2 resource is auto-create new restore source if it was deleted, so notice that the id of the restore source resource will be different after recreation. and for update restore source, it will create a new restore source with the new configuration
Create a restore source pointing to a cluster or object store to restore the domain manager. The created restore source is intended to be deleted after use. If the restore source is not deleted using the deleteRestoreSource API, then it is auto-deleted after sometime. Also note that a restore source will not contain a backup policy. It is only used to access the backup data at the location from where the Prism Central may be restored. Credentials used to access the restore source are not validated at the time of creation of the restore source. They are validated when the restore source is used to fetch data.
Example Usage
Cluster Location
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
//defining nutanix configuration for PE
const pe = new nutanix.Provider("pe", {
username: _var.nutanix_pe_username,
password: _var.nutanix_pe_password,
endpoint: _var.nutanix_pe_endpoint,
insecure: true,
port: "9440",
});
// restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
// new restore source if it was deleted, so notice that the id of the restore source will be different
// after recreation
const cluster_location = new nutanix.PcRestoreSourceV2("cluster-location", {location: {
clusterLocations: [{
configs: [{
extId: "323860ca-bd10-411e-9fe0-1430b62eaf45",
}],
}],
}}, {
provider: nutanix.pe,
});
import pulumi
import pulumi_nutanix as nutanix
#defining nutanix configuration for PE
pe = nutanix.Provider("pe",
username=var["nutanix_pe_username"],
password=var["nutanix_pe_password"],
endpoint=var["nutanix_pe_endpoint"],
insecure=True,
port="9440")
# restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
# new restore source if it was deleted, so notice that the id of the restore source will be different
# after recreation
cluster_location = nutanix.PcRestoreSourceV2("cluster-location", location={
"cluster_locations": [{
"configs": [{
"ext_id": "323860ca-bd10-411e-9fe0-1430b62eaf45",
}],
}],
},
opts = pulumi.ResourceOptions(provider=nutanix["pe"]))
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 {
// defining nutanix configuration for PE
_, err := nutanix.NewProvider(ctx, "pe", &nutanix.ProviderArgs{
Username: pulumi.Any(_var.Nutanix_pe_username),
Password: pulumi.Any(_var.Nutanix_pe_password),
Endpoint: pulumi.Any(_var.Nutanix_pe_endpoint),
Insecure: pulumi.Bool(true),
Port: pulumi.String("9440"),
})
if err != nil {
return err
}
// restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
// new restore source if it was deleted, so notice that the id of the restore source will be different
// after recreation
_, err = nutanix.NewPcRestoreSourceV2(ctx, "cluster-location", &nutanix.PcRestoreSourceV2Args{
Location: &nutanix.PcRestoreSourceV2LocationArgs{
ClusterLocations: nutanix.PcRestoreSourceV2LocationClusterLocationArray{
&nutanix.PcRestoreSourceV2LocationClusterLocationArgs{
Configs: nutanix.PcRestoreSourceV2LocationClusterLocationConfigArray{
&nutanix.PcRestoreSourceV2LocationClusterLocationConfigArgs{
ExtId: pulumi.String("323860ca-bd10-411e-9fe0-1430b62eaf45"),
},
},
},
},
},
}, pulumi.Provider(nutanix.Pe))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
//defining nutanix configuration for PE
var pe = new Nutanix.Provider("pe", new()
{
Username = @var.Nutanix_pe_username,
Password = @var.Nutanix_pe_password,
Endpoint = @var.Nutanix_pe_endpoint,
Insecure = true,
Port = "9440",
});
// restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
// new restore source if it was deleted, so notice that the id of the restore source will be different
// after recreation
var cluster_location = new Nutanix.PcRestoreSourceV2("cluster-location", new()
{
Location = new Nutanix.Inputs.PcRestoreSourceV2LocationArgs
{
ClusterLocations = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationClusterLocationArgs
{
Configs = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationClusterLocationConfigArgs
{
ExtId = "323860ca-bd10-411e-9fe0-1430b62eaf45",
},
},
},
},
},
}, new CustomResourceOptions
{
Provider = nutanix.Pe,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.Provider;
import com.pulumi.nutanix.ProviderArgs;
import com.pulumi.nutanix.PcRestoreSourceV2;
import com.pulumi.nutanix.PcRestoreSourceV2Args;
import com.pulumi.nutanix.inputs.PcRestoreSourceV2LocationArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
//defining nutanix configuration for PE
var pe = new Provider("pe", ProviderArgs.builder()
.username(var_.nutanix_pe_username())
.password(var_.nutanix_pe_password())
.endpoint(var_.nutanix_pe_endpoint())
.insecure(true)
.port("9440")
.build());
// restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
// new restore source if it was deleted, so notice that the id of the restore source will be different
// after recreation
var cluster_location = new PcRestoreSourceV2("cluster-location", PcRestoreSourceV2Args.builder()
.location(PcRestoreSourceV2LocationArgs.builder()
.clusterLocations(PcRestoreSourceV2LocationClusterLocationArgs.builder()
.configs(PcRestoreSourceV2LocationClusterLocationConfigArgs.builder()
.extId("323860ca-bd10-411e-9fe0-1430b62eaf45")
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(nutanix.pe())
.build());
}
}
resources:
#defining nutanix configuration for PE
pe:
type: pulumi:providers:nutanix
properties:
username: ${var.nutanix_pe_username}
password: ${var.nutanix_pe_password}
endpoint: ${var.nutanix_pe_endpoint}
# PE endpoint
insecure: true
port: 9440
# restore source is auto-deleted after sometime, nutanix_pc_restore_source_v2 resource is auto-create
# new restore source if it was deleted, so notice that the id of the restore source will be different
# after recreation
cluster-location:
type: nutanix:PcRestoreSourceV2
properties:
location:
clusterLocations:
- configs:
- extId: 323860ca-bd10-411e-9fe0-1430b62eaf45
options:
provider: ${nutanix.pe}
Object Store Location
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// using object store location
const object_store_location = new nutanix.PcRestoreSourceV2("object-store-location", {location: {
objectStoreLocations: [{
providerConfigs: [{
bucketName: "nutanix-terraform-bucket",
region: "us-west-1",
credentials: {
accessKeyId: "IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA",
secretAccessKey: "JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk",
},
}],
backupPolicies: [{
rpoInMinutes: 120,
}],
}],
}});
import pulumi
import pulumi_nutanix as nutanix
# using object store location
object_store_location = nutanix.PcRestoreSourceV2("object-store-location", location={
"object_store_locations": [{
"provider_configs": [{
"bucket_name": "nutanix-terraform-bucket",
"region": "us-west-1",
"credentials": {
"access_key_id": "IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA",
"secret_access_key": "JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk",
},
}],
"backup_policies": [{
"rpo_in_minutes": 120,
}],
}],
})
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 {
// using object store location
_, err := nutanix.NewPcRestoreSourceV2(ctx, "object-store-location", &nutanix.PcRestoreSourceV2Args{
Location: &nutanix.PcRestoreSourceV2LocationArgs{
ObjectStoreLocations: nutanix.PcRestoreSourceV2LocationObjectStoreLocationArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationArgs{
ProviderConfigs: nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs{
BucketName: pulumi.String("nutanix-terraform-bucket"),
Region: pulumi.String("us-west-1"),
Credentials: &nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs{
AccessKeyId: pulumi.String("IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA"),
SecretAccessKey: pulumi.String("JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk"),
},
},
},
BackupPolicies: nutanix.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs{
RpoInMinutes: pulumi.Int(120),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
// using object store location
var object_store_location = new Nutanix.PcRestoreSourceV2("object-store-location", new()
{
Location = new Nutanix.Inputs.PcRestoreSourceV2LocationArgs
{
ObjectStoreLocations = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationArgs
{
ProviderConfigs = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs
{
BucketName = "nutanix-terraform-bucket",
Region = "us-west-1",
Credentials = new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs
{
AccessKeyId = "IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA",
SecretAccessKey = "JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk",
},
},
},
BackupPolicies = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs
{
RpoInMinutes = 120,
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.PcRestoreSourceV2;
import com.pulumi.nutanix.PcRestoreSourceV2Args;
import com.pulumi.nutanix.inputs.PcRestoreSourceV2LocationArgs;
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) {
// using object store location
var object_store_location = new PcRestoreSourceV2("object-store-location", PcRestoreSourceV2Args.builder()
.location(PcRestoreSourceV2LocationArgs.builder()
.objectStoreLocations(PcRestoreSourceV2LocationObjectStoreLocationArgs.builder()
.providerConfigs(PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs.builder()
.bucketName("nutanix-terraform-bucket")
.region("us-west-1")
.credentials(PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs.builder()
.accessKeyId("IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA")
.secretAccessKey("JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk")
.build())
.build())
.backupPolicies(PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs.builder()
.rpoInMinutes(120)
.build())
.build())
.build())
.build());
}
}
resources:
# using object store location
object-store-location:
type: nutanix:PcRestoreSourceV2
properties:
location:
objectStoreLocations:
- providerConfigs:
- bucketName: nutanix-terraform-bucket
region: us-west-1
credentials:
accessKeyId: IHSAJHDHADFWYTKJHFGCJKHASGJHKDSA
secretAccessKey: JGSDHJYHGFHGHDS+JKBASDF/HSDAFHJ+SjkfbdsASDfdJFdSDFJfk
backupPolicies:
- rpoInMinutes: 120
Create PcRestoreSourceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PcRestoreSourceV2(name: string, args: PcRestoreSourceV2Args, opts?: CustomResourceOptions);
@overload
def PcRestoreSourceV2(resource_name: str,
args: PcRestoreSourceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def PcRestoreSourceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[PcRestoreSourceV2LocationArgs] = None)
func NewPcRestoreSourceV2(ctx *Context, name string, args PcRestoreSourceV2Args, opts ...ResourceOption) (*PcRestoreSourceV2, error)
public PcRestoreSourceV2(string name, PcRestoreSourceV2Args args, CustomResourceOptions? opts = null)
public PcRestoreSourceV2(String name, PcRestoreSourceV2Args args)
public PcRestoreSourceV2(String name, PcRestoreSourceV2Args args, CustomResourceOptions options)
type: nutanix:PcRestoreSourceV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PcRestoreSourceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PcRestoreSourceV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PcRestoreSourceV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PcRestoreSourceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PcRestoreSourceV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pcRestoreSourceV2Resource = new Nutanix.PcRestoreSourceV2("pcRestoreSourceV2Resource", new()
{
Location = new Nutanix.Inputs.PcRestoreSourceV2LocationArgs
{
ClusterLocations = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationClusterLocationArgs
{
Configs = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationClusterLocationConfigArgs
{
ExtId = "string",
Name = "string",
},
},
},
},
ObjectStoreLocations = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationArgs
{
ProviderConfigs = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs
{
BucketName = "string",
Credentials = new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs
{
AccessKeyId = "string",
SecretAccessKey = "string",
},
Region = "string",
},
},
BackupPolicies = new[]
{
new Nutanix.Inputs.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs
{
RpoInMinutes = 0,
},
},
},
},
},
});
example, err := nutanix.NewPcRestoreSourceV2(ctx, "pcRestoreSourceV2Resource", &nutanix.PcRestoreSourceV2Args{
Location: &nutanix.PcRestoreSourceV2LocationArgs{
ClusterLocations: nutanix.PcRestoreSourceV2LocationClusterLocationArray{
&nutanix.PcRestoreSourceV2LocationClusterLocationArgs{
Configs: nutanix.PcRestoreSourceV2LocationClusterLocationConfigArray{
&nutanix.PcRestoreSourceV2LocationClusterLocationConfigArgs{
ExtId: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
},
ObjectStoreLocations: nutanix.PcRestoreSourceV2LocationObjectStoreLocationArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationArgs{
ProviderConfigs: nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs{
BucketName: pulumi.String("string"),
Credentials: &nutanix.PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs{
AccessKeyId: pulumi.String("string"),
SecretAccessKey: pulumi.String("string"),
},
Region: pulumi.String("string"),
},
},
BackupPolicies: nutanix.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArray{
&nutanix.PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs{
RpoInMinutes: pulumi.Int(0),
},
},
},
},
},
})
var pcRestoreSourceV2Resource = new PcRestoreSourceV2("pcRestoreSourceV2Resource", PcRestoreSourceV2Args.builder()
.location(PcRestoreSourceV2LocationArgs.builder()
.clusterLocations(PcRestoreSourceV2LocationClusterLocationArgs.builder()
.configs(PcRestoreSourceV2LocationClusterLocationConfigArgs.builder()
.extId("string")
.name("string")
.build())
.build())
.objectStoreLocations(PcRestoreSourceV2LocationObjectStoreLocationArgs.builder()
.providerConfigs(PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs.builder()
.bucketName("string")
.credentials(PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs.builder()
.accessKeyId("string")
.secretAccessKey("string")
.build())
.region("string")
.build())
.backupPolicies(PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs.builder()
.rpoInMinutes(0)
.build())
.build())
.build())
.build());
pc_restore_source_v2_resource = nutanix.PcRestoreSourceV2("pcRestoreSourceV2Resource", location={
"cluster_locations": [{
"configs": [{
"ext_id": "string",
"name": "string",
}],
}],
"object_store_locations": [{
"provider_configs": [{
"bucket_name": "string",
"credentials": {
"access_key_id": "string",
"secret_access_key": "string",
},
"region": "string",
}],
"backup_policies": [{
"rpo_in_minutes": 0,
}],
}],
})
const pcRestoreSourceV2Resource = new nutanix.PcRestoreSourceV2("pcRestoreSourceV2Resource", {location: {
clusterLocations: [{
configs: [{
extId: "string",
name: "string",
}],
}],
objectStoreLocations: [{
providerConfigs: [{
bucketName: "string",
credentials: {
accessKeyId: "string",
secretAccessKey: "string",
},
region: "string",
}],
backupPolicies: [{
rpoInMinutes: 0,
}],
}],
}});
type: nutanix:PcRestoreSourceV2
properties:
location:
clusterLocations:
- configs:
- extId: string
name: string
objectStoreLocations:
- backupPolicies:
- rpoInMinutes: 0
providerConfigs:
- bucketName: string
credentials:
accessKeyId: string
secretAccessKey: string
region: string
PcRestoreSourceV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PcRestoreSourceV2 resource accepts the following input properties:
- Location
Piers
Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- Location
Pc
Restore Source V2Location Args - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- location
Pc
Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- location
Pc
Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- location
Pc
Restore Source V2Location Args - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- location Property Map
- -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
Outputs
All input properties are implicitly available as output properties. Additionally, the PcRestoreSourceV2 resource produces the following output properties:
- Backup
Pause stringReason - Ext
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Backup boolPaused - Last
Sync stringTime - Links
List<Piers
Karsenbarg. Nutanix. Outputs. Pc Restore Source V2Link> - Tenant
Id string
- Backup
Pause stringReason - Ext
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Backup boolPaused - Last
Sync stringTime - Links
[]Pc
Restore Source V2Link - Tenant
Id string
- backup
Pause StringReason - ext
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Backup BooleanPaused - last
Sync StringTime - links
List<Pc
Restore Source V2Link> - tenant
Id String
- backup
Pause stringReason - ext
Id string - id string
- The provider-assigned unique ID for this managed resource.
- is
Backup booleanPaused - last
Sync stringTime - links
Pc
Restore Source V2Link[] - tenant
Id string
- backup_
pause_ strreason - ext_
id str - id str
- The provider-assigned unique ID for this managed resource.
- is_
backup_ boolpaused - last_
sync_ strtime - links
Sequence[Pc
Restore Source V2Link] - tenant_
id str
- backup
Pause StringReason - ext
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Backup BooleanPaused - last
Sync StringTime - links List<Property Map>
- tenant
Id String
Look up Existing PcRestoreSourceV2 Resource
Get an existing PcRestoreSourceV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PcRestoreSourceV2State, opts?: CustomResourceOptions): PcRestoreSourceV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_pause_reason: Optional[str] = None,
ext_id: Optional[str] = None,
is_backup_paused: Optional[bool] = None,
last_sync_time: Optional[str] = None,
links: Optional[Sequence[PcRestoreSourceV2LinkArgs]] = None,
location: Optional[PcRestoreSourceV2LocationArgs] = None,
tenant_id: Optional[str] = None) -> PcRestoreSourceV2
func GetPcRestoreSourceV2(ctx *Context, name string, id IDInput, state *PcRestoreSourceV2State, opts ...ResourceOption) (*PcRestoreSourceV2, error)
public static PcRestoreSourceV2 Get(string name, Input<string> id, PcRestoreSourceV2State? state, CustomResourceOptions? opts = null)
public static PcRestoreSourceV2 get(String name, Output<String> id, PcRestoreSourceV2State state, CustomResourceOptions options)
resources: _: type: nutanix:PcRestoreSourceV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Pause stringReason - Ext
Id string - Is
Backup boolPaused - Last
Sync stringTime - Links
List<Piers
Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Link> - Location
Piers
Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- Tenant
Id string
- Backup
Pause stringReason - Ext
Id string - Is
Backup boolPaused - Last
Sync stringTime - Links
[]Pc
Restore Source V2Link Args - Location
Pc
Restore Source V2Location Args - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- Tenant
Id string
- backup
Pause StringReason - ext
Id String - is
Backup BooleanPaused - last
Sync StringTime - links
List<Pc
Restore Source V2Link> - location
Pc
Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id String
- backup
Pause stringReason - ext
Id string - is
Backup booleanPaused - last
Sync stringTime - links
Pc
Restore Source V2Link[] - location
Pc
Restore Source V2Location - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id string
- backup_
pause_ strreason - ext_
id str - is_
backup_ boolpaused - last_
sync_ strtime - links
Sequence[Pc
Restore Source V2Link Args] - location
Pc
Restore Source V2Location Args - -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant_
id str
- backup
Pause StringReason - ext
Id String - is
Backup BooleanPaused - last
Sync StringTime - links List<Property Map>
- location Property Map
- -(Required) Location of the backup target. For example, a cluster or an object store endpoint, such as AWS s3.
- tenant
Id String
Supporting Types
PcRestoreSourceV2Link, PcRestoreSourceV2LinkArgs
PcRestoreSourceV2Location, PcRestoreSourceV2LocationArgs
- Cluster
Locations List<PiersKarsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Cluster Location> - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store List<PiersLocations Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Object Store Location> - -(Optional) Currently representing the build information to be used for the cluster creation.
- Cluster
Locations []PcRestore Source V2Location Cluster Location - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store []PcLocations Restore Source V2Location Object Store Location - -(Optional) Currently representing the build information to be used for the cluster creation.
- cluster
Locations List<PcRestore Source V2Location Cluster Location> - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store List<PcLocations Restore Source V2Location Object Store Location> - -(Optional) Currently representing the build information to be used for the cluster creation.
- cluster
Locations PcRestore Source V2Location Cluster Location[] - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store PcLocations Restore Source V2Location Object Store Location[] - -(Optional) Currently representing the build information to be used for the cluster creation.
- cluster_
locations Sequence[PcRestore Source V2Location Cluster Location] - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- object_
store_ Sequence[Pclocations Restore Source V2Location Object Store Location] - -(Optional) Currently representing the build information to be used for the cluster creation.
- cluster
Locations List<Property Map> - -(Optional) A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store List<Property Map>Locations - -(Optional) Currently representing the build information to be used for the cluster creation.
PcRestoreSourceV2LocationClusterLocation, PcRestoreSourceV2LocationClusterLocationArgs
- Configs
List<Piers
Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Cluster Location Config> - -(Required) Cluster reference of the remote cluster to be connected.
- Configs
[]Pc
Restore Source V2Location Cluster Location Config - -(Required) Cluster reference of the remote cluster to be connected.
- configs
List<Pc
Restore Source V2Location Cluster Location Config> - -(Required) Cluster reference of the remote cluster to be connected.
- configs
Pc
Restore Source V2Location Cluster Location Config[] - -(Required) Cluster reference of the remote cluster to be connected.
- configs
Sequence[Pc
Restore Source V2Location Cluster Location Config] - -(Required) Cluster reference of the remote cluster to be connected.
- configs List<Property Map>
- -(Required) Cluster reference of the remote cluster to be connected.
PcRestoreSourceV2LocationClusterLocationConfig, PcRestoreSourceV2LocationClusterLocationConfigArgs
PcRestoreSourceV2LocationObjectStoreLocation, PcRestoreSourceV2LocationObjectStoreLocationArgs
- Provider
Configs List<PiersKarsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Object Store Location Provider Config> - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- Backup
Policies List<PiersKarsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Object Store Location Backup Policy> - -(Optional) Backup policy for the object store provided.
- Provider
Configs []PcRestore Source V2Location Object Store Location Provider Config - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- Backup
Policies []PcRestore Source V2Location Object Store Location Backup Policy - -(Optional) Backup policy for the object store provided.
- provider
Configs List<PcRestore Source V2Location Object Store Location Provider Config> - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies List<PcRestore Source V2Location Object Store Location Backup Policy> - -(Optional) Backup policy for the object store provided.
- provider
Configs PcRestore Source V2Location Object Store Location Provider Config[] - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies PcRestore Source V2Location Object Store Location Backup Policy[] - -(Optional) Backup policy for the object store provided.
- provider_
configs Sequence[PcRestore Source V2Location Object Store Location Provider Config] - -(Required) The base model of S3 object store endpoint where domain manager is backed up.
- backup_
policies Sequence[PcRestore Source V2Location Object Store Location Backup Policy] - -(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.
- backup
Policies List<Property Map> - -(Optional) Backup policy for the object store provided.
PcRestoreSourceV2LocationObjectStoreLocationBackupPolicy, PcRestoreSourceV2LocationObjectStoreLocationBackupPolicyArgs
- Rpo
In intMinutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
- Rpo
In intMinutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
- rpo
In IntegerMinutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
- rpo
In numberMinutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
- rpo_
in_ intminutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
- rpo
In NumberMinutes -(Required) RPO interval in minutes at which the backup will be taken. The Value should be in the range of 60 to 1440.
See detailed information in Nutanix Restore Source V4.
PcRestoreSourceV2LocationObjectStoreLocationProviderConfig, PcRestoreSourceV2LocationObjectStoreLocationProviderConfigArgs
- Bucket
Name string - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- Credentials
Piers
Karsenbarg. Nutanix. Inputs. Pc Restore Source V2Location Object Store Location Provider Config Credentials - -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- Region string
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- Bucket
Name string - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- Credentials
Pc
Restore Source V2Location Object Store Location Provider Config Credentials - -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- Region string
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- bucket
Name String - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
Pc
Restore Source V2Location Object Store Location Provider Config Credentials - -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- region String
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- bucket
Name string - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
Pc
Restore Source V2Location Object Store Location Provider Config Credentials - -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- region string
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- bucket_
name str - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials
Pc
Restore Source V2Location Object Store Location Provider Config Credentials - -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- region str
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
- bucket
Name String - -(Required) The bucket name of the object store endpoint where backup data of domain manager is to be stored.
- credentials Property Map
- -(Optional) Secret credentials model for the object store containing access key ID and secret access key.
- region String
- -(Optional) The region name of the object store endpoint where backup data of domain manager is stored. Default is
us-east-1
.
PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentials, PcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredentialsArgs
- Access
Key stringId - -(Required) Access key ID for the object store provided for backup target.
- Secret
Access stringKey - -(Required) Secret access key for the object store provided for backup target.
- Access
Key stringId - -(Required) Access key ID for the object store provided for backup target.
- Secret
Access stringKey - -(Required) Secret access key for the object store provided for backup target.
- access
Key StringId - -(Required) Access key ID for the object store provided for backup target.
- secret
Access StringKey - -(Required) Secret access key for the object store provided for backup target.
- access
Key stringId - -(Required) Access key ID for the object store provided for backup target.
- secret
Access stringKey - -(Required) Secret access key for the object store provided for backup target.
- access_
key_ strid - -(Required) Access key ID for the object store provided for backup target.
- secret_
access_ strkey - -(Required) Secret access key for the object store provided for backup target.
- access
Key StringId - -(Required) Access key ID for the object store provided for backup target.
- secret
Access StringKey - -(Required) 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.