1. Packages
  2. Rancher2
  3. API Docs
  4. getStorageClassV2
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi

rancher2.getStorageClassV2

Explore with Pulumi AI

rancher2 logo
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi

    Use this data source to retrieve information about a Rancher2 Storage Class v2. Storage Class v2 resource is available at Rancher v2.5.x and above.

    Using getStorageClassV2

    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 getStorageClassV2(args: GetStorageClassV2Args, opts?: InvokeOptions): Promise<GetStorageClassV2Result>
    function getStorageClassV2Output(args: GetStorageClassV2OutputArgs, opts?: InvokeOptions): Output<GetStorageClassV2Result>
    def get_storage_class_v2(cluster_id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetStorageClassV2Result
    def get_storage_class_v2_output(cluster_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetStorageClassV2Result]
    func LookupStorageClassV2(ctx *Context, args *LookupStorageClassV2Args, opts ...InvokeOption) (*LookupStorageClassV2Result, error)
    func LookupStorageClassV2Output(ctx *Context, args *LookupStorageClassV2OutputArgs, opts ...InvokeOption) LookupStorageClassV2ResultOutput

    > Note: This function is named LookupStorageClassV2 in the Go SDK.

    public static class GetStorageClassV2 
    {
        public static Task<GetStorageClassV2Result> InvokeAsync(GetStorageClassV2Args args, InvokeOptions? opts = null)
        public static Output<GetStorageClassV2Result> Invoke(GetStorageClassV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageClassV2Result> getStorageClassV2(GetStorageClassV2Args args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rancher2:index/getStorageClassV2:getStorageClassV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The cluster id of the storageClass V2 (string)
    Name string
    The name of the storageClass v2 (string)
    ClusterId string
    The cluster id of the storageClass V2 (string)
    Name string
    The name of the storageClass v2 (string)
    clusterId String
    The cluster id of the storageClass V2 (string)
    name String
    The name of the storageClass v2 (string)
    clusterId string
    The cluster id of the storageClass V2 (string)
    name string
    The name of the storageClass v2 (string)
    cluster_id str
    The cluster id of the storageClass V2 (string)
    name str
    The name of the storageClass v2 (string)
    clusterId String
    The cluster id of the storageClass V2 (string)
    name String
    The name of the storageClass v2 (string)

    getStorageClassV2 Result

    The following output properties are available:

    AllowVolumeExpansion bool
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    Annotations Dictionary<string, object>
    (Computed) Annotations for the storageClass v2 (map)
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    K8sProvisioner string
    (Computed) The provisioner of the storageClass v2 (string)
    Labels Dictionary<string, object>
    (Computed) Labels for the storageClass v2 (map)
    MountOptions List<string>
    (Computed) The mount options for storageClass v2 (list)
    Name string
    Parameters Dictionary<string, object>
    (Computed) The parameters for storageClass v2 (string)
    ReclaimPolicy string
    (Computed) The reclaim policy for storageClass v2 (string)
    ResourceVersion string
    (Computed) The k8s resource version (string)
    VolumeBindingMode string
    (Computed) The volume binding mode for storageClass v2 (string)
    AllowVolumeExpansion bool
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    Annotations map[string]interface{}
    (Computed) Annotations for the storageClass v2 (map)
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    K8sProvisioner string
    (Computed) The provisioner of the storageClass v2 (string)
    Labels map[string]interface{}
    (Computed) Labels for the storageClass v2 (map)
    MountOptions []string
    (Computed) The mount options for storageClass v2 (list)
    Name string
    Parameters map[string]interface{}
    (Computed) The parameters for storageClass v2 (string)
    ReclaimPolicy string
    (Computed) The reclaim policy for storageClass v2 (string)
    ResourceVersion string
    (Computed) The k8s resource version (string)
    VolumeBindingMode string
    (Computed) The volume binding mode for storageClass v2 (string)
    allowVolumeExpansion Boolean
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    annotations Map<String,Object>
    (Computed) Annotations for the storageClass v2 (map)
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    k8sProvisioner String
    (Computed) The provisioner of the storageClass v2 (string)
    labels Map<String,Object>
    (Computed) Labels for the storageClass v2 (map)
    mountOptions List<String>
    (Computed) The mount options for storageClass v2 (list)
    name String
    parameters Map<String,Object>
    (Computed) The parameters for storageClass v2 (string)
    reclaimPolicy String
    (Computed) The reclaim policy for storageClass v2 (string)
    resourceVersion String
    (Computed) The k8s resource version (string)
    volumeBindingMode String
    (Computed) The volume binding mode for storageClass v2 (string)
    allowVolumeExpansion boolean
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    annotations {[key: string]: any}
    (Computed) Annotations for the storageClass v2 (map)
    clusterId string
    id string
    The provider-assigned unique ID for this managed resource.
    k8sProvisioner string
    (Computed) The provisioner of the storageClass v2 (string)
    labels {[key: string]: any}
    (Computed) Labels for the storageClass v2 (map)
    mountOptions string[]
    (Computed) The mount options for storageClass v2 (list)
    name string
    parameters {[key: string]: any}
    (Computed) The parameters for storageClass v2 (string)
    reclaimPolicy string
    (Computed) The reclaim policy for storageClass v2 (string)
    resourceVersion string
    (Computed) The k8s resource version (string)
    volumeBindingMode string
    (Computed) The volume binding mode for storageClass v2 (string)
    allow_volume_expansion bool
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    annotations Mapping[str, Any]
    (Computed) Annotations for the storageClass v2 (map)
    cluster_id str
    id str
    The provider-assigned unique ID for this managed resource.
    k8s_provisioner str
    (Computed) The provisioner of the storageClass v2 (string)
    labels Mapping[str, Any]
    (Computed) Labels for the storageClass v2 (map)
    mount_options Sequence[str]
    (Computed) The mount options for storageClass v2 (list)
    name str
    parameters Mapping[str, Any]
    (Computed) The parameters for storageClass v2 (string)
    reclaim_policy str
    (Computed) The reclaim policy for storageClass v2 (string)
    resource_version str
    (Computed) The k8s resource version (string)
    volume_binding_mode str
    (Computed) The volume binding mode for storageClass v2 (string)
    allowVolumeExpansion Boolean
    (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
    annotations Map<Any>
    (Computed) Annotations for the storageClass v2 (map)
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    k8sProvisioner String
    (Computed) The provisioner of the storageClass v2 (string)
    labels Map<Any>
    (Computed) Labels for the storageClass v2 (map)
    mountOptions List<String>
    (Computed) The mount options for storageClass v2 (list)
    name String
    parameters Map<Any>
    (Computed) The parameters for storageClass v2 (string)
    reclaimPolicy String
    (Computed) The reclaim policy for storageClass v2 (string)
    resourceVersion String
    (Computed) The k8s resource version (string)
    volumeBindingMode String
    (Computed) The volume binding mode for storageClass v2 (string)

    Package Details

    Repository
    Rancher2 pulumi/pulumi-rancher2
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rancher2 Terraform Provider.
    rancher2 logo
    Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi