Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg
Provides a datasource to Fetch the configuration details of the existing Storage Policy identified by the {policyExtId}.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const get_storage_policy = nutanix.getStoragePolicyV2({
extId: "1891fd3a-1ef7-4947-af56-9ee4b973c6fd",
});
import pulumi
import pulumi_nutanix as nutanix
get_storage_policy = nutanix.get_storage_policy_v2(ext_id="1891fd3a-1ef7-4947-af56-9ee4b973c6fd")
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.GetStoragePolicyV2(ctx, &nutanix.LookupStoragePolicyV2Args{
ExtId: "1891fd3a-1ef7-4947-af56-9ee4b973c6fd",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
var get_storage_policy = Nutanix.GetStoragePolicyV2.Invoke(new()
{
ExtId = "1891fd3a-1ef7-4947-af56-9ee4b973c6fd",
});
});
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.GetStoragePolicyV2Args;
import java.util.ArrayList;
import java.util.Arrays;
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 get-storage-policy = NutanixFunctions.getStoragePolicyV2(GetStoragePolicyV2Args.builder()
.extId("1891fd3a-1ef7-4947-af56-9ee4b973c6fd")
.build());
}
}
variables:
get-storage-policy:
fn::invoke:
function: nutanix:getStoragePolicyV2
arguments:
extId: 1891fd3a-1ef7-4947-af56-9ee4b973c6fd
pulumi {
required_providers {
nutanix = {
source = "pulumi/nutanix"
}
}
}
data "nutanix_getstoragepolicyv2" "get-storage-policy" {
ext_id = "1891fd3a-1ef7-4947-af56-9ee4b973c6fd"
}
Using getStoragePolicyV2
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 getStoragePolicyV2(args: GetStoragePolicyV2Args, opts?: InvokeOptions): Promise<GetStoragePolicyV2Result>
function getStoragePolicyV2Output(args: GetStoragePolicyV2OutputArgs, opts?: InvokeOptions): Output<GetStoragePolicyV2Result>def get_storage_policy_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStoragePolicyV2Result
def get_storage_policy_v2_output(ext_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStoragePolicyV2Result]func LookupStoragePolicyV2(ctx *Context, args *LookupStoragePolicyV2Args, opts ...InvokeOption) (*LookupStoragePolicyV2Result, error)
func LookupStoragePolicyV2Output(ctx *Context, args *LookupStoragePolicyV2OutputArgs, opts ...InvokeOption) LookupStoragePolicyV2ResultOutput> Note: This function is named LookupStoragePolicyV2 in the Go SDK.
public static class GetStoragePolicyV2
{
public static Task<GetStoragePolicyV2Result> InvokeAsync(GetStoragePolicyV2Args args, InvokeOptions? opts = null)
public static Output<GetStoragePolicyV2Result> Invoke(GetStoragePolicyV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStoragePolicyV2Result> getStoragePolicyV2(GetStoragePolicyV2Args args, InvokeOptions options)
public static Output<GetStoragePolicyV2Result> getStoragePolicyV2(GetStoragePolicyV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getStoragePolicyV2:getStoragePolicyV2
arguments:
# arguments dictionarydata "nutanix_getstoragepolicyv2" "name" {
# arguments
}The following arguments are supported:
- Ext
Id string - The external identifier of the Storage Policy.
- Ext
Id string - The external identifier of the Storage Policy.
- ext_
id string - The external identifier of the Storage Policy.
- ext
Id String - The external identifier of the Storage Policy.
- ext
Id string - The external identifier of the Storage Policy.
- ext_
id str - The external identifier of the Storage Policy.
- ext
Id String - The external identifier of the Storage Policy.
getStoragePolicyV2 Result
The following output properties are available:
- Category
Ext List<string>Ids - List of external identifiers for Categories included in the Storage Policy.
- Compression
Specs List<PiersKarsenbarg. Nutanix. Outputs. Get Storage Policy V2Compression Spec> - Compression parameters for entities governed by the Storage Policy.
- Encryption
Specs List<PiersKarsenbarg. Nutanix. Outputs. Get Storage Policy V2Encryption Spec> - Encryption parameters for entities governed by the Storage Policy.
- Ext
Id string - External identifier of the Storage Policy.
- Fault
Tolerance List<PiersSpecs Karsenbarg. Nutanix. Outputs. Get Storage Policy V2Fault Tolerance Spec> - Fault Tolerance parameters for the entities.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Storage Policy 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.
- Name string
- Storage Policy name.
- Policy
Type string - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- Qos
Specs List<PiersKarsenbarg. Nutanix. Outputs. Get Storage Policy V2Qos Spec> - Storage Quality of Service (QOS) parameters for the entities.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- Category
Ext []stringIds - List of external identifiers for Categories included in the Storage Policy.
- Compression
Specs []GetStorage Policy V2Compression Spec - Compression parameters for entities governed by the Storage Policy.
- Encryption
Specs []GetStorage Policy V2Encryption Spec - Encryption parameters for entities governed by the Storage Policy.
- Ext
Id string - External identifier of the Storage Policy.
- Fault
Tolerance []GetSpecs Storage Policy V2Fault Tolerance Spec - Fault Tolerance parameters for the entities.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Get
Storage Policy 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.
- Name string
- Storage Policy name.
- Policy
Type string - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- Qos
Specs []GetStorage Policy V2Qos Spec - Storage Quality of Service (QOS) parameters for the entities.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- category_
ext_ list(string)ids - List of external identifiers for Categories included in the Storage Policy.
- compression_
specs list(object) - Compression parameters for entities governed by the Storage Policy.
- encryption_
specs list(object) - Encryption parameters for entities governed by the Storage Policy.
- ext_
id string - External identifier of the Storage Policy.
- fault_
tolerance_ list(object)specs - Fault Tolerance parameters for the entities.
- id string
- The provider-assigned unique ID for this managed resource.
- links list(object)
- 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.
- name string
- Storage Policy name.
- policy_
type string - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- qos_
specs list(object) - Storage Quality of Service (QOS) parameters for the entities.
- tenant_
id string - A globally unique identifier that represents the tenant that owns this entity.
- category
Ext List<String>Ids - List of external identifiers for Categories included in the Storage Policy.
- compression
Specs List<GetStorage Policy V2Compression Spec> - Compression parameters for entities governed by the Storage Policy.
- encryption
Specs List<GetStorage Policy V2Encryption Spec> - Encryption parameters for entities governed by the Storage Policy.
- ext
Id String - External identifier of the Storage Policy.
- fault
Tolerance List<GetSpecs Storage Policy V2Fault Tolerance Spec> - Fault Tolerance parameters for the entities.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Get
Storage Policy 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.
- name String
- Storage Policy name.
- policy
Type String - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- qos
Specs List<GetStorage Policy V2Qos Spec> - Storage Quality of Service (QOS) parameters for the entities.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
- category
Ext string[]Ids - List of external identifiers for Categories included in the Storage Policy.
- compression
Specs GetStorage Policy V2Compression Spec[] - Compression parameters for entities governed by the Storage Policy.
- encryption
Specs GetStorage Policy V2Encryption Spec[] - Encryption parameters for entities governed by the Storage Policy.
- ext
Id string - External identifier of the Storage Policy.
- fault
Tolerance GetSpecs Storage Policy V2Fault Tolerance Spec[] - Fault Tolerance parameters for the entities.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Get
Storage Policy 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.
- name string
- Storage Policy name.
- policy
Type string - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- qos
Specs GetStorage Policy V2Qos Spec[] - Storage Quality of Service (QOS) parameters for the entities.
- tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- category_
ext_ Sequence[str]ids - List of external identifiers for Categories included in the Storage Policy.
- compression_
specs Sequence[GetStorage Policy V2Compression Spec] - Compression parameters for entities governed by the Storage Policy.
- encryption_
specs Sequence[GetStorage Policy V2Encryption Spec] - Encryption parameters for entities governed by the Storage Policy.
- ext_
id str - External identifier of the Storage Policy.
- fault_
tolerance_ Sequence[Getspecs Storage Policy V2Fault Tolerance Spec] - Fault Tolerance parameters for the entities.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Get
Storage Policy 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.
- name str
- Storage Policy name.
- policy_
type str - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- qos_
specs Sequence[GetStorage Policy V2Qos Spec] - Storage Quality of Service (QOS) parameters for the entities.
- tenant_
id str - A globally unique identifier that represents the tenant that owns this entity.
- category
Ext List<String>Ids - List of external identifiers for Categories included in the Storage Policy.
- compression
Specs List<Property Map> - Compression parameters for entities governed by the Storage Policy.
- encryption
Specs List<Property Map> - Encryption parameters for entities governed by the Storage Policy.
- ext
Id String - External identifier of the Storage Policy.
- fault
Tolerance List<Property Map>Specs - Fault Tolerance parameters for the entities.
- 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.
- name String
- Storage Policy name.
- policy
Type String - Indicates whether the policy is user-created or system-created. Valid values:
"USER","SYSTEM".
- Indicates whether the policy is user-created or system-created. Valid values:
- qos
Specs List<Property Map> - Storage Quality of Service (QOS) parameters for the entities.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
Supporting Types
GetStoragePolicyV2CompressionSpec
- Compression
State string - Compression state value.
- Compression
State string - Compression state value.
- compression_
state string - Compression state value.
- compression
State String - Compression state value.
- compression
State string - Compression state value.
- compression_
state str - Compression state value.
- compression
State String - Compression state value.
GetStoragePolicyV2EncryptionSpec
- Encryption
State string - Encryption state value.
- Encryption
State string - Encryption state value.
- encryption_
state string - Encryption state value.
- encryption
State String - Encryption state value.
- encryption
State string - Encryption state value.
- encryption_
state str - Encryption state value.
- encryption
State String - Encryption state value.
GetStoragePolicyV2FaultToleranceSpec
- Replication
Factor string - Replication factor value.
- Replication
Factor string - Replication factor value.
- replication_
factor string - Replication factor value.
- replication
Factor String - Replication factor value.
- replication
Factor string - Replication factor value.
- replication_
factor str - Replication factor value.
- replication
Factor String - Replication factor value.
GetStoragePolicyV2Link
GetStoragePolicyV2QosSpec
- Throttled
Iops int - Throttled IOPS value.
- Throttled
Iops int - Throttled IOPS value.
- throttled_
iops number - Throttled IOPS value.
- throttled
Iops Integer - Throttled IOPS value.
- throttled
Iops number - Throttled IOPS value.
- throttled_
iops int - Throttled IOPS value.
- throttled
Iops Number - Throttled IOPS value.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg