Rancher 2 v7.1.1 published on Monday, Oct 7, 2024 by Pulumi
rancher2.getStorageClassV2
Explore with Pulumi AI
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:
- cluster_
id str - The cluster id of the storageClass V2 (string)
- name str
- The name of the storageClass v2 (string)
getStorageClassV2 Result
The following output properties are available:
- Allow
Volume boolExpansion - (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
- Annotations Dictionary<string, string>
- (Computed) Annotations for the storageClass v2 (map)
- Cluster
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Provisioner string - (Computed) The provisioner of the storageClass v2 (string)
- Labels Dictionary<string, string>
- (Computed) Labels for the storageClass v2 (map)
- Mount
Options List<string> - (Computed) The mount options for storageClass v2 (list)
- Name string
- Parameters Dictionary<string, string>
- (Computed) The parameters for storageClass v2 (string)
- Reclaim
Policy string - (Computed) The reclaim policy for storageClass v2 (string)
- Resource
Version string - (Computed) The k8s resource version (string)
- Volume
Binding stringMode - (Computed) The volume binding mode for storageClass v2 (string)
- Allow
Volume boolExpansion - (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
- Annotations map[string]string
- (Computed) Annotations for the storageClass v2 (map)
- Cluster
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- K8s
Provisioner string - (Computed) The provisioner of the storageClass v2 (string)
- Labels map[string]string
- (Computed) Labels for the storageClass v2 (map)
- Mount
Options []string - (Computed) The mount options for storageClass v2 (list)
- Name string
- Parameters map[string]string
- (Computed) The parameters for storageClass v2 (string)
- Reclaim
Policy string - (Computed) The reclaim policy for storageClass v2 (string)
- Resource
Version string - (Computed) The k8s resource version (string)
- Volume
Binding stringMode - (Computed) The volume binding mode for storageClass v2 (string)
- allow
Volume BooleanExpansion - (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
- annotations Map<String,String>
- (Computed) Annotations for the storageClass v2 (map)
- cluster
Id String - id String
- The provider-assigned unique ID for this managed resource.
- k8s
Provisioner String - (Computed) The provisioner of the storageClass v2 (string)
- labels Map<String,String>
- (Computed) Labels for the storageClass v2 (map)
- mount
Options List<String> - (Computed) The mount options for storageClass v2 (list)
- name String
- parameters Map<String,String>
- (Computed) The parameters for storageClass v2 (string)
- reclaim
Policy String - (Computed) The reclaim policy for storageClass v2 (string)
- resource
Version String - (Computed) The k8s resource version (string)
- volume
Binding StringMode - (Computed) The volume binding mode for storageClass v2 (string)
- allow
Volume booleanExpansion - (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
- annotations {[key: string]: string}
- (Computed) Annotations for the storageClass v2 (map)
- cluster
Id string - id string
- The provider-assigned unique ID for this managed resource.
- k8s
Provisioner string - (Computed) The provisioner of the storageClass v2 (string)
- labels {[key: string]: string}
- (Computed) Labels for the storageClass v2 (map)
- mount
Options string[] - (Computed) The mount options for storageClass v2 (list)
- name string
- parameters {[key: string]: string}
- (Computed) The parameters for storageClass v2 (string)
- reclaim
Policy string - (Computed) The reclaim policy for storageClass v2 (string)
- resource
Version string - (Computed) The k8s resource version (string)
- volume
Binding stringMode - (Computed) The volume binding mode for storageClass v2 (string)
- allow_
volume_ boolexpansion - (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_ strmode - (Computed) The volume binding mode for storageClass v2 (string)
- allow
Volume BooleanExpansion - (Computed) Is the provisioner of the storageClass v2 allowing volume expansion? (bool)
- annotations Map<String>
- (Computed) Annotations for the storageClass v2 (map)
- cluster
Id String - id String
- The provider-assigned unique ID for this managed resource.
- k8s
Provisioner String - (Computed) The provisioner of the storageClass v2 (string)
- labels Map<String>
- (Computed) Labels for the storageClass v2 (map)
- mount
Options List<String> - (Computed) The mount options for storageClass v2 (list)
- name String
- parameters Map<String>
- (Computed) The parameters for storageClass v2 (string)
- reclaim
Policy String - (Computed) The reclaim policy for storageClass v2 (string)
- resource
Version String - (Computed) The k8s resource version (string)
- volume
Binding StringMode - (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.