Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg
nutanix.getPcRestoreSourceV2
Explore with Pulumi AI
Retrieves the restore source from the PE cache store and returns the restore source configuration and external identifier to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
import * as nutanix from "@pulumi/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",
});
const restore_source = nutanix.getPcRestoreSourceV2({
extId: "323860ca-bd10-411e-9fe0-1430b62eaf45",
});
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 = nutanix.get_pc_restore_source_v2(ext_id="323860ca-bd10-411e-9fe0-1430b62eaf45")
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
}
_, err = nutanix.LookupPcRestoreSourceV2(ctx, &nutanix.LookupPcRestoreSourceV2Args{
ExtId: "323860ca-bd10-411e-9fe0-1430b62eaf45",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.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",
});
var restore_source = Nutanix.GetPcRestoreSourceV2.Invoke(new()
{
ExtId = "323860ca-bd10-411e-9fe0-1430b62eaf45",
});
});
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.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetPcRestoreSourceV2Args;
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());
final var restore-source = NutanixFunctions.getPcRestoreSourceV2(GetPcRestoreSourceV2Args.builder()
.extId("323860ca-bd10-411e-9fe0-1430b62eaf45")
.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
variables:
restore-source:
fn::invoke:
function: nutanix:getPcRestoreSourceV2
arguments:
extId: 323860ca-bd10-411e-9fe0-1430b62eaf45
Using getPcRestoreSourceV2
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 getPcRestoreSourceV2(args: GetPcRestoreSourceV2Args, opts?: InvokeOptions): Promise<GetPcRestoreSourceV2Result>
function getPcRestoreSourceV2Output(args: GetPcRestoreSourceV2OutputArgs, opts?: InvokeOptions): Output<GetPcRestoreSourceV2Result>
def get_pc_restore_source_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPcRestoreSourceV2Result
def get_pc_restore_source_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPcRestoreSourceV2Result]
func LookupPcRestoreSourceV2(ctx *Context, args *LookupPcRestoreSourceV2Args, opts ...InvokeOption) (*LookupPcRestoreSourceV2Result, error)
func LookupPcRestoreSourceV2Output(ctx *Context, args *LookupPcRestoreSourceV2OutputArgs, opts ...InvokeOption) LookupPcRestoreSourceV2ResultOutput
> Note: This function is named LookupPcRestoreSourceV2
in the Go SDK.
public static class GetPcRestoreSourceV2
{
public static Task<GetPcRestoreSourceV2Result> InvokeAsync(GetPcRestoreSourceV2Args args, InvokeOptions? opts = null)
public static Output<GetPcRestoreSourceV2Result> Invoke(GetPcRestoreSourceV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPcRestoreSourceV2Result> getPcRestoreSourceV2(GetPcRestoreSourceV2Args args, InvokeOptions options)
public static Output<GetPcRestoreSourceV2Result> getPcRestoreSourceV2(GetPcRestoreSourceV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getPcRestoreSourceV2:getPcRestoreSourceV2
arguments:
# arguments dictionary
The following arguments are supported:
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext_
id str - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
getPcRestoreSourceV2 Result
The following output properties are available:
- Ext
Id string - Cluster UUID of a remote cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Pc Restore Source 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 Restore Source 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).
- Ext
Id string - Cluster UUID of a remote cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Get
Pc Restore Source 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 Restore Source 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).
- ext
Id String - Cluster UUID of a remote cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Get
Pc Restore Source 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 Restore Source 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).
- ext
Id string - Cluster UUID of a remote cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Get
Pc Restore Source 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 Restore Source 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).
- ext_
id str - Cluster UUID of a remote cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Get
Pc Restore Source 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 Restore Source 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).
- ext
Id String - Cluster UUID of a remote cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
GetPcRestoreSourceV2Link
GetPcRestoreSourceV2Location
- Cluster
Locations List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Restore Source V2Location Cluster Location> - A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store List<PiersLocations Karsenbarg. Nutanix. Inputs. Get Pc Restore Source V2Location Object Store Location> - Currently representing the build information to be used for the cluster creation.
- Cluster
Locations []GetPc Restore Source V2Location Cluster Location - A boolean value indicating whether to enable lockdown mode for a cluster.
- Object
Store []GetLocations Pc Restore Source V2Location Object Store Location - Currently representing the build information to be used for the cluster creation.
- cluster
Locations List<GetPc Restore Source V2Location Cluster Location> - A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store List<GetLocations Pc Restore Source V2Location Object Store Location> - Currently representing the build information to be used for the cluster creation.
- cluster
Locations GetPc Restore Source V2Location Cluster Location[] - A boolean value indicating whether to enable lockdown mode for a cluster.
- object
Store GetLocations Pc Restore Source V2Location Object Store Location[] - Currently representing the build information to be used for the cluster creation.
- cluster_
locations Sequence[GetPc Restore Source V2Location Cluster Location] - A boolean value indicating whether to enable lockdown mode for a cluster.
- object_
store_ Sequence[Getlocations Pc Restore Source 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.
GetPcRestoreSourceV2LocationClusterLocation
- Configs
List<Piers
Karsenbarg. Nutanix. Inputs. Get Pc Restore Source V2Location Cluster Location Config> - Cluster reference of the remote cluster to be connected.
- Configs
[]Get
Pc Restore Source V2Location Cluster Location Config - Cluster reference of the remote cluster to be connected.
- configs
List<Get
Pc Restore Source V2Location Cluster Location Config> - Cluster reference of the remote cluster to be connected.
- configs
Get
Pc Restore Source V2Location Cluster Location Config[] - Cluster reference of the remote cluster to be connected.
- configs
Sequence[Get
Pc Restore Source 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.
GetPcRestoreSourceV2LocationClusterLocationConfig
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- Ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id string - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext_
id str - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
- ext
Id String - -(Required) A globally unique identifier of an instance that is suitable for external consumption.
GetPcRestoreSourceV2LocationObjectStoreLocation
- Backup
Policies List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Restore Source V2Location Object Store Location Backup Policy> - Backup policy for the object store provided.
- Provider
Configs List<PiersKarsenbarg. Nutanix. Inputs. Get Pc Restore Source V2Location Object Store Location Provider Config> - The base model of S3 object store endpoint where domain manager is backed up.
- Backup
Policies []GetPc Restore Source V2Location Object Store Location Backup Policy - Backup policy for the object store provided.
- Provider
Configs []GetPc Restore Source V2Location Object Store Location Provider Config - The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies List<GetPc Restore Source V2Location Object Store Location Backup Policy> - Backup policy for the object store provided.
- provider
Configs List<GetPc Restore Source V2Location Object Store Location Provider Config> - The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies GetPc Restore Source V2Location Object Store Location Backup Policy[] - Backup policy for the object store provided.
- provider
Configs GetPc Restore Source V2Location Object Store Location Provider Config[] - The base model of S3 object store endpoint where domain manager is backed up.
- backup_
policies Sequence[GetPc Restore Source V2Location Object Store Location Backup Policy] - Backup policy for the object store provided.
- provider_
configs Sequence[GetPc Restore Source V2Location Object Store Location Provider Config] - The base model of S3 object store endpoint where domain manager is backed up.
- backup
Policies List<Property Map> - Backup policy for the object store provided.
- provider
Configs List<Property Map> - The base model of S3 object store endpoint where domain manager is backed up.
GetPcRestoreSourceV2LocationObjectStoreLocationBackupPolicy
- 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.
GetPcRestoreSourceV2LocationObjectStoreLocationProviderConfig
- 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 Restore Source 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 Restore Source 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 Restore Source 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 Restore Source 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 Restore Source 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
GetPcRestoreSourceV2LocationObjectStoreLocationProviderConfigCredential
- 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.