nutanix.getStorageContainersV2
Explore with Pulumi AI
Provides a datasource to Lists the Storage Containers present in the system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const storage_containers = nutanix.getStorageContainersV2({});
import pulumi
import pulumi_nutanix as nutanix
storage_containers = nutanix.get_storage_containers_v2()
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.LookupStorageContainersV2(ctx, &nutanix.LookupStorageContainersV2Args{}, 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 storage_containers = Nutanix.GetStorageContainersV2.Invoke();
});
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.GetStorageContainersV2Args;
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 storage-containers = NutanixFunctions.getStorageContainersV2(GetStorageContainersV2Args.builder()
.build());
}
}
variables:
storage-containers:
fn::invoke:
function: nutanix:getStorageContainersV2
arguments: {}
Storage Container
The storage_containers
contains list of Storage Container objects. Each Storage Container object contains the following attributes:
ext_id
: - the storage container uuidtenant_id
: - A globally unique identifier that represents the tenant that owns this entity.links
: - 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.container_ext_id
: - the storage container ext idowner_ext_id
: - owner ext idname
: Name of the storage container. Note that the name of Storage Container should be unique per cluster.cluster_ext_id
: - ext id for the cluster owning the storage container.storage_pool_ext_id
: - extId of the Storage Pool owning the Storage Container instance.is_marked_for_removal
: - Indicates if the Storage Container is marked for removal. This field is set when the Storage Container is about to be destroyed.max_capacity_bytes
: - Maximum physical capacity of the Storage Container in bytes.logical_explicit_reserved_capacity_bytes
: - Total reserved size (in bytes) of the container (set by Admin). This also accounts for the container’s replication factor. The actual reserved capacity of the container will be the maximum of explicitReservedCapacity and implicitReservedCapacity.logical_implicit_reserved_capacity_bytes
: - This is the summation of reservations provisioned on all VDisks in the container. The actual reserved capacity of the container will be the maximum of explicitReservedCapacity and implicitReservedCapacitylogical_advertised_capacity_bytes
: - Max capacity of the Container as defined by the user.replication_factor
: - Replication factor of the Storage Container.nfs_whitelist_addresses
: - List of NFS addresses which need to be whitelisted.is_nfs_whitelist_inherited
: - Indicates whether the NFS whitelist is inherited from global config.erasure_code
: - Indicates the current status value for Erasure Coding for the Container. available values:NONE
,OFF
,ON
is_inline_ec_enabled
: - Indicates whether data written to this container should be inline erasure coded or not. This field is only considered when ErasureCoding is enabled.has_higher_ec_fault_domain_preference
: - Indicates whether to prefer a higher Erasure Code fault domain.erasure_code_delay_secs
: - Delay in performing ErasureCode for the current Container instance.cache_deduplication
: - Indicates the current status of Cache Deduplication for the Container. available values:NONE
,OFF
,ON
on_disk_dedup
: - Indicates the current status of Disk Deduplication for the Container. available values:NONE
,OFF
,POST_PROCESS
is_compression_enabled
: - Indicates whether the compression is enabled for the Container.compression_delay_secs
: - The compression delay in seconds.is_internal
: - Indicates whether the Container is internal and is managed by Nutanix.is_software_encryption_enabled
: - Indicates whether the Container instance has software encryption enabled.is_encrypted
: - Indicates whether the Container is encrypted or not.affinity_host_ext_id
: - Affinity host extId for RF 1 Storage Container.cluster_name
: - Corresponding name of the Cluster owning the Storage Container instance.
nfs_whitelist_addresses
ipv4
: Reference to address configurationipv6
: Reference to address configurationfqdn
: Reference to address configuration
ipv4, ipv6 (Reference to address configuration)
value
: value of addressprefix_length
: The prefix length of the network to which this host IPv4/IPv6 address belongs.
fqdn (Reference to address configuration)
value
: value of fqdn address
See detailed information in Nutanix List Storage Containers v4.
Using getStorageContainersV2
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 getStorageContainersV2(args: GetStorageContainersV2Args, opts?: InvokeOptions): Promise<GetStorageContainersV2Result>
function getStorageContainersV2Output(args: GetStorageContainersV2OutputArgs, opts?: InvokeOptions): Output<GetStorageContainersV2Result>
def get_storage_containers_v2(apply: Optional[str] = None,
filter: Optional[str] = None,
limit: Optional[int] = None,
order_by: Optional[str] = None,
page: Optional[int] = None,
select: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageContainersV2Result
def get_storage_containers_v2_output(apply: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[int]] = None,
order_by: Optional[pulumi.Input[str]] = None,
page: Optional[pulumi.Input[int]] = None,
select: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageContainersV2Result]
func LookupStorageContainersV2(ctx *Context, args *LookupStorageContainersV2Args, opts ...InvokeOption) (*LookupStorageContainersV2Result, error)
func LookupStorageContainersV2Output(ctx *Context, args *LookupStorageContainersV2OutputArgs, opts ...InvokeOption) LookupStorageContainersV2ResultOutput
> Note: This function is named LookupStorageContainersV2
in the Go SDK.
public static class GetStorageContainersV2
{
public static Task<GetStorageContainersV2Result> InvokeAsync(GetStorageContainersV2Args args, InvokeOptions? opts = null)
public static Output<GetStorageContainersV2Result> Invoke(GetStorageContainersV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStorageContainersV2Result> getStorageContainersV2(GetStorageContainersV2Args args, InvokeOptions options)
public static Output<GetStorageContainersV2Result> getStorageContainersV2(GetStorageContainersV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getStorageContainersV2:getStorageContainersV2
arguments:
# arguments dictionary
The following arguments are supported:
- Apply string
- Filter string
- A URL query parameter that allows clients to filter a collection of resources.
- Limit int
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- Order
By string - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- Page int
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- Select string
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
- Apply string
- Filter string
- A URL query parameter that allows clients to filter a collection of resources.
- Limit int
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- Order
By string - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- Page int
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- Select string
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
- apply String
- filter String
- A URL query parameter that allows clients to filter a collection of resources.
- limit Integer
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- order
By String - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- page Integer
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- select String
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
- apply string
- filter string
- A URL query parameter that allows clients to filter a collection of resources.
- limit number
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- order
By string - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- page number
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- select string
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
- apply str
- filter str
- A URL query parameter that allows clients to filter a collection of resources.
- limit int
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- order_
by str - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- page int
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- select str
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
- apply String
- filter String
- A URL query parameter that allows clients to filter a collection of resources.
- limit Number
- A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
- order
By String - A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default.
- page Number
- A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
- select String
- A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
getStorageContainersV2 Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Containers List<PiersKarsenbarg. Nutanix. Outputs. Get Storage Containers V2Storage Container> - Lists the Storage Containers present in the system.
- Apply string
- Filter string
- Limit int
- Order
By string - Page int
- Select string
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Containers []GetStorage Containers V2Storage Container - Lists the Storage Containers present in the system.
- Apply string
- Filter string
- Limit int
- Order
By string - Page int
- Select string
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Containers List<GetStorage Containers V2Storage Container> - Lists the Storage Containers present in the system.
- apply String
- filter String
- limit Integer
- order
By String - page Integer
- select String
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Containers GetStorage Containers V2Storage Container[] - Lists the Storage Containers present in the system.
- apply string
- filter string
- limit number
- order
By string - page number
- select string
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
containers Sequence[GetStorage Containers V2Storage Container] - Lists the Storage Containers present in the system.
- apply str
- filter str
- limit int
- order_
by str - page int
- select str
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Containers List<Property Map> - Lists the Storage Containers present in the system.
- apply String
- filter String
- limit Number
- order
By String - page Number
- select String
Supporting Types
GetStorageContainersV2StorageContainer
- Affinity
Host stringExt Id - Cache
Deduplication string - Cluster
Ext stringId - Cluster
Name string - Compression
Delay intSecs - Container
Ext stringId - Erasure
Code string - Erasure
Code intDelay Secs - Ext
Id string - Has
Higher boolEc Fault Domain Preference - Is
Compression boolEnabled - Is
Encrypted bool - Is
Inline boolEc Enabled - Is
Internal bool - Is
Marked boolFor Removal - Is
Nfs boolWhitelist Inherited - Is
Software boolEncryption Enabled - Links
List<Piers
Karsenbarg. Nutanix. Inputs. Get Storage Containers V2Storage Container Link> - Logical
Advertised intCapacity Bytes - Logical
Explicit intReserved Capacity Bytes - Logical
Implicit intReserved Capacity Bytes - Max
Capacity intBytes - Name string
- Nfs
Whitelist List<PiersAddresses Karsenbarg. Nutanix. Inputs. Get Storage Containers V2Storage Container Nfs Whitelist Address> - On
Disk stringDedup - Owner
Ext stringId - Replication
Factor int - Storage
Pool stringExt Id - Tenant
Id string
- Affinity
Host stringExt Id - Cache
Deduplication string - Cluster
Ext stringId - Cluster
Name string - Compression
Delay intSecs - Container
Ext stringId - Erasure
Code string - Erasure
Code intDelay Secs - Ext
Id string - Has
Higher boolEc Fault Domain Preference - Is
Compression boolEnabled - Is
Encrypted bool - Is
Inline boolEc Enabled - Is
Internal bool - Is
Marked boolFor Removal - Is
Nfs boolWhitelist Inherited - Is
Software boolEncryption Enabled - Links
[]Get
Storage Containers V2Storage Container Link - Logical
Advertised intCapacity Bytes - Logical
Explicit intReserved Capacity Bytes - Logical
Implicit intReserved Capacity Bytes - Max
Capacity intBytes - Name string
- Nfs
Whitelist []GetAddresses Storage Containers V2Storage Container Nfs Whitelist Address - On
Disk stringDedup - Owner
Ext stringId - Replication
Factor int - Storage
Pool stringExt Id - Tenant
Id string
- affinity
Host StringExt Id - cache
Deduplication String - cluster
Ext StringId - cluster
Name String - compression
Delay IntegerSecs - container
Ext StringId - erasure
Code String - erasure
Code IntegerDelay Secs - ext
Id String - has
Higher BooleanEc Fault Domain Preference - is
Compression BooleanEnabled - is
Encrypted Boolean - is
Inline BooleanEc Enabled - is
Internal Boolean - is
Marked BooleanFor Removal - is
Nfs BooleanWhitelist Inherited - is
Software BooleanEncryption Enabled - links
List<Get
Storage Containers V2Storage Container Link> - logical
Advertised IntegerCapacity Bytes - logical
Explicit IntegerReserved Capacity Bytes - logical
Implicit IntegerReserved Capacity Bytes - max
Capacity IntegerBytes - name String
- nfs
Whitelist List<GetAddresses Storage Containers V2Storage Container Nfs Whitelist Address> - on
Disk StringDedup - owner
Ext StringId - replication
Factor Integer - storage
Pool StringExt Id - tenant
Id String
- affinity
Host stringExt Id - cache
Deduplication string - cluster
Ext stringId - cluster
Name string - compression
Delay numberSecs - container
Ext stringId - erasure
Code string - erasure
Code numberDelay Secs - ext
Id string - has
Higher booleanEc Fault Domain Preference - is
Compression booleanEnabled - is
Encrypted boolean - is
Inline booleanEc Enabled - is
Internal boolean - is
Marked booleanFor Removal - is
Nfs booleanWhitelist Inherited - is
Software booleanEncryption Enabled - links
Get
Storage Containers V2Storage Container Link[] - logical
Advertised numberCapacity Bytes - logical
Explicit numberReserved Capacity Bytes - logical
Implicit numberReserved Capacity Bytes - max
Capacity numberBytes - name string
- nfs
Whitelist GetAddresses Storage Containers V2Storage Container Nfs Whitelist Address[] - on
Disk stringDedup - owner
Ext stringId - replication
Factor number - storage
Pool stringExt Id - tenant
Id string
- affinity_
host_ strext_ id - cache_
deduplication str - cluster_
ext_ strid - cluster_
name str - compression_
delay_ intsecs - container_
ext_ strid - erasure_
code str - erasure_
code_ intdelay_ secs - ext_
id str - has_
higher_ boolec_ fault_ domain_ preference - is_
compression_ boolenabled - is_
encrypted bool - is_
inline_ boolec_ enabled - is_
internal bool - is_
marked_ boolfor_ removal - is_
nfs_ boolwhitelist_ inherited - is_
software_ boolencryption_ enabled - links
Sequence[Get
Storage Containers V2Storage Container Link] - logical_
advertised_ intcapacity_ bytes - logical_
explicit_ intreserved_ capacity_ bytes - logical_
implicit_ intreserved_ capacity_ bytes - max_
capacity_ intbytes - name str
- nfs_
whitelist_ Sequence[Getaddresses Storage Containers V2Storage Container Nfs Whitelist Address] - on_
disk_ strdedup - owner_
ext_ strid - replication_
factor int - storage_
pool_ strext_ id - tenant_
id str
- affinity
Host StringExt Id - cache
Deduplication String - cluster
Ext StringId - cluster
Name String - compression
Delay NumberSecs - container
Ext StringId - erasure
Code String - erasure
Code NumberDelay Secs - ext
Id String - has
Higher BooleanEc Fault Domain Preference - is
Compression BooleanEnabled - is
Encrypted Boolean - is
Inline BooleanEc Enabled - is
Internal Boolean - is
Marked BooleanFor Removal - is
Nfs BooleanWhitelist Inherited - is
Software BooleanEncryption Enabled - links List<Property Map>
- logical
Advertised NumberCapacity Bytes - logical
Explicit NumberReserved Capacity Bytes - logical
Implicit NumberReserved Capacity Bytes - max
Capacity NumberBytes - name String
- nfs
Whitelist List<Property Map>Addresses - on
Disk StringDedup - owner
Ext StringId - replication
Factor Number - storage
Pool StringExt Id - tenant
Id String
GetStorageContainersV2StorageContainerLink
GetStorageContainersV2StorageContainerNfsWhitelistAddress
- Fqdns
List<Piers
Karsenbarg. Nutanix. Inputs. Get Storage Containers V2Storage Container Nfs Whitelist Address Fqdn> - Ipv4s
List<Piers
Karsenbarg. Nutanix. Inputs. Get Storage Containers V2Storage Container Nfs Whitelist Address Ipv4> - Ipv6s
List<Piers
Karsenbarg. Nutanix. Inputs. Get Storage Containers V2Storage Container Nfs Whitelist Address Ipv6>
GetStorageContainersV2StorageContainerNfsWhitelistAddressFqdn
- Value string
- Value string
- value String
- value string
- value str
- value String
GetStorageContainersV2StorageContainerNfsWhitelistAddressIpv4
- Prefix
Length int - Value string
- Prefix
Length int - Value string
- prefix
Length Integer - value String
- prefix
Length number - value string
- prefix_
length int - value str
- prefix
Length Number - value String
GetStorageContainersV2StorageContainerNfsWhitelistAddressIpv6
- Prefix
Length int - Value string
- Prefix
Length int - Value string
- prefix
Length Integer - value String
- prefix
Length number - value string
- prefix_
length int - value str
- prefix
Length Number - value String
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.