1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudkms
  5. cloudkms/v1
  6. getKeyRing

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudkms/v1.getKeyRing

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Returns metadata for a given KeyRing.

Using getKeyRing

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 getKeyRing(args: GetKeyRingArgs, opts?: InvokeOptions): Promise<GetKeyRingResult>
function getKeyRingOutput(args: GetKeyRingOutputArgs, opts?: InvokeOptions): Output<GetKeyRingResult>
Copy
def get_key_ring(key_ring_id: Optional[str] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetKeyRingResult
def get_key_ring_output(key_ring_id: Optional[pulumi.Input[str]] = None,
                 location: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetKeyRingResult]
Copy
func LookupKeyRing(ctx *Context, args *LookupKeyRingArgs, opts ...InvokeOption) (*LookupKeyRingResult, error)
func LookupKeyRingOutput(ctx *Context, args *LookupKeyRingOutputArgs, opts ...InvokeOption) LookupKeyRingResultOutput
Copy

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

public static class GetKeyRing 
{
    public static Task<GetKeyRingResult> InvokeAsync(GetKeyRingArgs args, InvokeOptions? opts = null)
    public static Output<GetKeyRingResult> Invoke(GetKeyRingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetKeyRingResult> getKeyRing(GetKeyRingArgs args, InvokeOptions options)
public static Output<GetKeyRingResult> getKeyRing(GetKeyRingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:cloudkms/v1:getKeyRing
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

KeyRingId This property is required. string
Location This property is required. string
Project string
KeyRingId This property is required. string
Location This property is required. string
Project string
keyRingId This property is required. String
location This property is required. String
project String
keyRingId This property is required. string
location This property is required. string
project string
key_ring_id This property is required. str
location This property is required. str
project str
keyRingId This property is required. String
location This property is required. String
project String

getKeyRing Result

The following output properties are available:

CreateTime string
The time at which this KeyRing was created.
Name string
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
CreateTime string
The time at which this KeyRing was created.
Name string
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
createTime String
The time at which this KeyRing was created.
name String
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
createTime string
The time at which this KeyRing was created.
name string
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
create_time str
The time at which this KeyRing was created.
name str
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
createTime String
The time at which this KeyRing was created.
name String
The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi