Show / Hide Table of Contents

Class GetKeyVersions

Inheritance
System.Object
GetKeyVersions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Kms
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetKeyVersions

Methods

View Source

InvokeAsync(GetKeyVersionsArgs, InvokeOptions)

This data source provides a list of KMS KeyVersions in an Alibaba Cloud account according to the specified filters.

NOTE: Available in v1.85.0+

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var alicloudKmsKeyVersionsDs = Output.Create(AliCloud.Kms.GetKeyVersions.InvokeAsync(new AliCloud.Kms.GetKeyVersionsArgs
    {
        Ids = 
        {
            "d89e8a53-b708-41aa-8c67-6873axxx",
        },
        KeyId = "08438c-b4d5-4d05-928c-07b7xxxx",
    }));
    this.AllVersions = alicloudKmsKeyVersionsDs.Apply(alicloudKmsKeyVersionsDs => alicloudKmsKeyVersionsDs.Versions);
}

[Output("allVersions")]
public Output<string> AllVersions { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetKeyVersionsResult> InvokeAsync(GetKeyVersionsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetKeyVersionsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetKeyVersionsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.