import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get the details of the specified protected resource such as the restorable time ranges available on the local Prism Central and the state of replication to the targets specified in the applied protection policies. This applies only if the entity is protected in a minutely or synchronous schedule. Other protection schedules are not served by this endpoint yet, and are considered not protected. * * ## Example 1: Get Protected Virtual Machine * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const protected_vm = nutanix.getProtectedResourceV2({ * extId: "d22529bb-f02d-4710-894b-d1de772d7832", * }); * ``` * * * ## Example 2: Get Protected Volume Group * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const protected_vg = nutanix.getProtectedResourceV2({ * extId: "246c651a-1b16-4983-b5ff-204840f85e07", * }); * ``` * */ export declare function getProtectedResourceV2(args: GetProtectedResourceV2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProtectedResourceV2. */ export interface GetProtectedResourceV2Args { /** * -(Required) The external identifier of a protected VM or volume group that can be used to retrieve the protected resource. */ extId: string; } /** * A collection of values returned by getProtectedResourceV2. */ export interface GetProtectedResourceV2Result { /** * Category key-value pairs associated with the protected resource at the time of protection. The category key and value are separated by '/'. For example, a category with key 'dept' and value 'hr' will be represented as 'dept/hr'. */ readonly categoryFqNames: string[]; /** * External identifier of the Consistency group which the protected resource is part of. */ readonly consistencyGroupExtId: string; /** * The external identifier of the VM or the volume group associated with the protected resource. */ readonly entityExtId: string; /** * Protected resource entity type. Possible values are: VM, VOLUME_GROUP. */ readonly entityType: string; /** * - The external identifier of a protected VM or volume group that can be used to retrieve the protected resource. */ readonly extId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * 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. */ readonly links: outputs.GetProtectedResourceV2Link[]; /** * Replication related information about the protected resource. */ readonly replicationStates: outputs.GetProtectedResourceV2ReplicationState[]; /** * The data protection details for the protected resource that are relevant to any of the sites in the local Prism Central, like the time ranges available for recovery. */ readonly siteProtectionInfos: outputs.GetProtectedResourceV2SiteProtectionInfo[]; /** * Details about the data protection site in the Prism Central. */ readonly sourceSiteReferences: outputs.GetProtectedResourceV2SourceSiteReference[]; /** * 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). */ readonly tenantId: string; } /** * Get the details of the specified protected resource such as the restorable time ranges available on the local Prism Central and the state of replication to the targets specified in the applied protection policies. This applies only if the entity is protected in a minutely or synchronous schedule. Other protection schedules are not served by this endpoint yet, and are considered not protected. * * ## Example 1: Get Protected Virtual Machine * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const protected_vm = nutanix.getProtectedResourceV2({ * extId: "d22529bb-f02d-4710-894b-d1de772d7832", * }); * ``` * * * ## Example 2: Get Protected Volume Group * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const protected_vg = nutanix.getProtectedResourceV2({ * extId: "246c651a-1b16-4983-b5ff-204840f85e07", * }); * ``` * */ export declare function getProtectedResourceV2Output(args: GetProtectedResourceV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProtectedResourceV2. */ export interface GetProtectedResourceV2OutputArgs { /** * -(Required) The external identifier of a protected VM or volume group that can be used to retrieve the protected resource. */ extId: pulumi.Input; } //# sourceMappingURL=getProtectedResourceV2.d.ts.map