etcd 0.11.0 published on Sunday, Jul 13, 2025 by ferlab-ste-justine
etcd.getKey
Explore with Pulumi AI
etcd 0.11.0 published on Sunday, Jul 13, 2025 by ferlab-ste-justine
Retrieves information about a key.
Using getKey
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 getKey(args: GetKeyArgs, opts?: InvokeOptions): Promise<GetKeyResult>
function getKeyOutput(args: GetKeyOutputArgs, opts?: InvokeOptions): Output<GetKeyResult>
def get_key(id: Optional[str] = None,
key: Optional[str] = None,
must_exist: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetKeyResult
def get_key_output(id: Optional[pulumi.Input[str]] = None,
key: Optional[pulumi.Input[str]] = None,
must_exist: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKeyResult]
func LookupKey(ctx *Context, args *LookupKeyArgs, opts ...InvokeOption) (*LookupKeyResult, error)
func LookupKeyOutput(ctx *Context, args *LookupKeyOutputArgs, opts ...InvokeOption) LookupKeyResultOutput
> Note: This function is named LookupKey
in the Go SDK.
public static class GetKey
{
public static Task<GetKeyResult> InvokeAsync(GetKeyArgs args, InvokeOptions? opts = null)
public static Output<GetKeyResult> Invoke(GetKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKeyResult> getKey(GetKeyArgs args, InvokeOptions options)
public static Output<GetKeyResult> getKey(GetKeyArgs args, InvokeOptions options)
fn::invoke:
function: etcd:index/getKey:getKey
arguments:
# arguments dictionary
The following arguments are supported:
- key str
- Key to retrieve.
- id str
- The ID of this resource.
- must_
exist bool - Whether to cause an error if the key is not found.
getKey Result
The following output properties are available:
- Create
Revision double - Revision of the etcd keystore when the key was created
- Found bool
- Whether the key was found.
- Id string
- The ID of this resource.
- Key string
- Key to retrieve.
- Lease double
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- Mod
Revision double - Revision of the etcd keystore when the key was last modified
- Value string
- Value of the key.
- Version double
- Current version of the key. Note that version is reset to 0 on deletion
- Must
Exist bool - Whether to cause an error if the key is not found.
- Create
Revision float64 - Revision of the etcd keystore when the key was created
- Found bool
- Whether the key was found.
- Id string
- The ID of this resource.
- Key string
- Key to retrieve.
- Lease float64
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- Mod
Revision float64 - Revision of the etcd keystore when the key was last modified
- Value string
- Value of the key.
- Version float64
- Current version of the key. Note that version is reset to 0 on deletion
- Must
Exist bool - Whether to cause an error if the key is not found.
- create
Revision Double - Revision of the etcd keystore when the key was created
- found Boolean
- Whether the key was found.
- id String
- The ID of this resource.
- key String
- Key to retrieve.
- lease Double
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- mod
Revision Double - Revision of the etcd keystore when the key was last modified
- value String
- Value of the key.
- version Double
- Current version of the key. Note that version is reset to 0 on deletion
- must
Exist Boolean - Whether to cause an error if the key is not found.
- create
Revision number - Revision of the etcd keystore when the key was created
- found boolean
- Whether the key was found.
- id string
- The ID of this resource.
- key string
- Key to retrieve.
- lease number
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- mod
Revision number - Revision of the etcd keystore when the key was last modified
- value string
- Value of the key.
- version number
- Current version of the key. Note that version is reset to 0 on deletion
- must
Exist boolean - Whether to cause an error if the key is not found.
- create_
revision float - Revision of the etcd keystore when the key was created
- found bool
- Whether the key was found.
- id str
- The ID of this resource.
- key str
- Key to retrieve.
- lease float
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- mod_
revision float - Revision of the etcd keystore when the key was last modified
- value str
- Value of the key.
- version float
- Current version of the key. Note that version is reset to 0 on deletion
- must_
exist bool - Whether to cause an error if the key is not found.
- create
Revision Number - Revision of the etcd keystore when the key was created
- found Boolean
- Whether the key was found.
- id String
- The ID of this resource.
- key String
- Key to retrieve.
- lease Number
- Id of the lease that the key is attached to. Will be 0 if the key is not attached to a lease.
- mod
Revision Number - Revision of the etcd keystore when the key was last modified
- value String
- Value of the key.
- version Number
- Current version of the key. Note that version is reset to 0 on deletion
- must
Exist Boolean - Whether to cause an error if the key is not found.
Package Details
- Repository
- etcd ferlab-ste-justine/terraform-provider-etcd
- License
- Notes
- This Pulumi package is based on the
etcd
Terraform Provider.
etcd 0.11.0 published on Sunday, Jul 13, 2025 by ferlab-ste-justine