1. Packages
  2. Rancher2 Provider
  3. API Docs
  4. getStorageClassV2
Rancher 2 v7.1.1 published on Monday, Oct 7, 2024 by Pulumi

rancher2.getStorageClassV2

Explore with Pulumi AI

rancher2 logo
Rancher 2 v7.1.1 published on Monday, Oct 7, 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, string>
    (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, string>
    (Computed) Labels for the storageClass v2 (map)
    MountOptions List<string>
    (Computed) The mount options for storageClass v2 (list)
    Name string
    Parameters Dictionary<string, string>
    (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]string
    (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]string
    (Computed) Labels for the storageClass v2 (map)
    MountOptions []string
    (Computed) The mount options for storageClass v2 (list)
    Name string
    Parameters map[string]string
    (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,String>
    (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,String>
    (Computed) Labels for the storageClass v2 (map)
    mountOptions List<String>
    (Computed) The mount options for storageClass v2 (list)
    name String
    parameters Map<String,String>
    (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]: string}
    (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]: string}
    (Computed) Labels for the storageClass v2 (map)
    mountOptions string[]
    (Computed) The mount options for storageClass v2 (list)
    name string
    parameters {[key: string]: string}
    (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, str]
    (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, str]
    (Computed) Labels for the storageClass v2 (map)
    mount_options Sequence[str]
    (Computed) The mount options for storageClass v2 (list)
    name str
    parameters Mapping[str, str]
    (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<String>
    (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>
    (Computed) Labels for the storageClass v2 (map)
    mountOptions List<String>
    (Computed) The mount options for storageClass v2 (list)
    name String
    parameters Map<String>
    (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 v7.1.1 published on Monday, Oct 7, 2024 by Pulumi