OpenStack

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Monday, Feb 7, 2022 by Pulumi

getSecret

Using getSecret

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 getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>
def get_secret(acl_only: Optional[bool] = None,
               algorithm: Optional[str] = None,
               bit_length: Optional[int] = None,
               created_at_filter: Optional[str] = None,
               expiration_filter: Optional[str] = None,
               mode: Optional[str] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               secret_type: Optional[str] = None,
               updated_at_filter: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(acl_only: Optional[pulumi.Input[bool]] = None,
               algorithm: Optional[pulumi.Input[str]] = None,
               bit_length: Optional[pulumi.Input[int]] = None,
               created_at_filter: Optional[pulumi.Input[str]] = None,
               expiration_filter: Optional[pulumi.Input[str]] = None,
               mode: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               region: Optional[pulumi.Input[str]] = None,
               secret_type: Optional[pulumi.Input[str]] = None,
               updated_at_filter: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]
func GetSecret(ctx *Context, args *GetSecretArgs, opts ...InvokeOption) (*GetSecretResult, error)
func GetSecretOutput(ctx *Context, args *GetSecretOutputArgs, opts ...InvokeOption) GetSecretResultOutput

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

public static class GetSecret 
{
    public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: openstack:keymanager/getSecret:getSecret
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AclOnly bool

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

Algorithm string

The Secret algorithm.

BitLength int

The Secret bit length.

CreatedAtFilter string

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

ExpirationFilter string

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

Mode string

The Secret mode.

Name string

The Secret name.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

SecretType string

The Secret type. For more information see Secret types.

UpdatedAtFilter string

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

AclOnly bool

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

Algorithm string

The Secret algorithm.

BitLength int

The Secret bit length.

CreatedAtFilter string

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

ExpirationFilter string

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

Mode string

The Secret mode.

Name string

The Secret name.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

SecretType string

The Secret type. For more information see Secret types.

UpdatedAtFilter string

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

aclOnly Boolean

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

algorithm String

The Secret algorithm.

bitLength Integer

The Secret bit length.

createdAtFilter String

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

expirationFilter String

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

mode String

The Secret mode.

name String

The Secret name.

region String

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

secretType String

The Secret type. For more information see Secret types.

updatedAtFilter String

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

aclOnly boolean

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

algorithm string

The Secret algorithm.

bitLength number

The Secret bit length.

createdAtFilter string

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

expirationFilter string

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

mode string

The Secret mode.

name string

The Secret name.

region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

secretType string

The Secret type. For more information see Secret types.

updatedAtFilter string

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

acl_only bool

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

algorithm str

The Secret algorithm.

bit_length int

The Secret bit length.

created_at_filter str

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

expiration_filter str

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

mode str

The Secret mode.

name str

The Secret name.

region str

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

secret_type str

The Secret type. For more information see Secret types.

updated_at_filter str

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

aclOnly Boolean

Select the Secret with an ACL that contains the user. Project scope is ignored. Defaults to false.

algorithm String

The Secret algorithm.

bitLength Number

The Secret bit length.

createdAtFilter String

Date filter to select the Secret with created matching the specified criteria. See Date Filters below for more detail.

expirationFilter String

Date filter to select the Secret with expiration matching the specified criteria. See Date Filters below for more detail.

mode String

The Secret mode.

name String

The Secret name.

region String

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a secret. If omitted, the region argument of the provider is used.

secretType String

The Secret type. For more information see Secret types.

updatedAtFilter String

Date filter to select the Secret with updated matching the specified criteria. See Date Filters below for more detail.

getSecret Result

The following output properties are available:

Acls List<Pulumi.OpenStack.KeyManager.Outputs.GetSecretAcl>

The list of ACLs assigned to a secret. The read structure is described below.

ContentTypes Dictionary<string, object>

The map of the content types, assigned on the secret.

CreatedAt string

The date the secret ACL was created.

CreatorId string

The creator of the secret.

Expiration string

The date the secret will expire.

Id string

The provider-assigned unique ID for this managed resource.

Metadata Dictionary<string, object>

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

Payload string

The secret payload.

PayloadContentEncoding string

The Secret encoding.

PayloadContentType string

The Secret content type.

SecretRef string

The secret reference / where to find the secret.

Status string

The status of the secret.

UpdatedAt string

The date the secret ACL was last updated.

AclOnly bool

See Argument Reference above.

Algorithm string

See Argument Reference above.

BitLength int

See Argument Reference above.

CreatedAtFilter string

See Argument Reference above.

ExpirationFilter string

See Argument Reference above.

Mode string

See Argument Reference above.

Name string

See Argument Reference above.

Region string

See Argument Reference above.

SecretType string

See Argument Reference above.

UpdatedAtFilter string

See Argument Reference above.

Acls []GetSecretAcl

The list of ACLs assigned to a secret. The read structure is described below.

ContentTypes map[string]interface{}

The map of the content types, assigned on the secret.

CreatedAt string

The date the secret ACL was created.

CreatorId string

The creator of the secret.

Expiration string

The date the secret will expire.

Id string

The provider-assigned unique ID for this managed resource.

Metadata map[string]interface{}

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

Payload string

The secret payload.

PayloadContentEncoding string

The Secret encoding.

PayloadContentType string

The Secret content type.

SecretRef string

The secret reference / where to find the secret.

Status string

The status of the secret.

UpdatedAt string

The date the secret ACL was last updated.

AclOnly bool

See Argument Reference above.

Algorithm string

See Argument Reference above.

BitLength int

See Argument Reference above.

CreatedAtFilter string

See Argument Reference above.

ExpirationFilter string

See Argument Reference above.

Mode string

See Argument Reference above.

Name string

See Argument Reference above.

Region string

See Argument Reference above.

SecretType string

See Argument Reference above.

UpdatedAtFilter string

See Argument Reference above.

acls ListSecretAcl>

The list of ACLs assigned to a secret. The read structure is described below.

contentTypes Map

The map of the content types, assigned on the secret.

createdAt String

The date the secret ACL was created.

creatorId String

The creator of the secret.

expiration String

The date the secret will expire.

id String

The provider-assigned unique ID for this managed resource.

metadata Map

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

payload String

The secret payload.

payloadContentEncoding String

The Secret encoding.

payloadContentType String

The Secret content type.

secretRef String

The secret reference / where to find the secret.

status String

The status of the secret.

updatedAt String

The date the secret ACL was last updated.

aclOnly Boolean

See Argument Reference above.

algorithm String

See Argument Reference above.

bitLength Integer

See Argument Reference above.

createdAtFilter String

See Argument Reference above.

expirationFilter String

See Argument Reference above.

mode String

See Argument Reference above.

name String

See Argument Reference above.

region String

See Argument Reference above.

secretType String

See Argument Reference above.

updatedAtFilter String

See Argument Reference above.

acls GetSecretAcl[]

The list of ACLs assigned to a secret. The read structure is described below.

contentTypes {[key: string]: any}

The map of the content types, assigned on the secret.

createdAt string

The date the secret ACL was created.

creatorId string

The creator of the secret.

expiration string

The date the secret will expire.

id string

The provider-assigned unique ID for this managed resource.

metadata {[key: string]: any}

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

payload string

The secret payload.

payloadContentEncoding string

The Secret encoding.

payloadContentType string

The Secret content type.

secretRef string

The secret reference / where to find the secret.

status string

The status of the secret.

updatedAt string

The date the secret ACL was last updated.

aclOnly boolean

See Argument Reference above.

algorithm string

See Argument Reference above.

bitLength number

See Argument Reference above.

createdAtFilter string

See Argument Reference above.

expirationFilter string

See Argument Reference above.

mode string

See Argument Reference above.

name string

See Argument Reference above.

region string

See Argument Reference above.

secretType string

See Argument Reference above.

updatedAtFilter string

See Argument Reference above.

acls Sequence[GetSecretAcl]

The list of ACLs assigned to a secret. The read structure is described below.

content_types Mapping[str, Any]

The map of the content types, assigned on the secret.

created_at str

The date the secret ACL was created.

creator_id str

The creator of the secret.

expiration str

The date the secret will expire.

id str

The provider-assigned unique ID for this managed resource.

metadata Mapping[str, Any]

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

payload str

The secret payload.

payload_content_encoding str

The Secret encoding.

payload_content_type str

The Secret content type.

secret_ref str

The secret reference / where to find the secret.

status str

The status of the secret.

updated_at str

The date the secret ACL was last updated.

acl_only bool

See Argument Reference above.

algorithm str

See Argument Reference above.

bit_length int

See Argument Reference above.

created_at_filter str

See Argument Reference above.

expiration_filter str

See Argument Reference above.

mode str

See Argument Reference above.

name str

See Argument Reference above.

region str

See Argument Reference above.

secret_type str

See Argument Reference above.

updated_at_filter str

See Argument Reference above.

acls List

The list of ACLs assigned to a secret. The read structure is described below.

contentTypes Map

The map of the content types, assigned on the secret.

createdAt String

The date the secret ACL was created.

creatorId String

The creator of the secret.

expiration String

The date the secret will expire.

id String

The provider-assigned unique ID for this managed resource.

metadata Map

The map of metadata, assigned on the secret, which has been explicitly and implicitly added.

payload String

The secret payload.

payloadContentEncoding String

The Secret encoding.

payloadContentType String

The Secret content type.

secretRef String

The secret reference / where to find the secret.

status String

The status of the secret.

updatedAt String

The date the secret ACL was last updated.

aclOnly Boolean

See Argument Reference above.

algorithm String

See Argument Reference above.

bitLength Number

See Argument Reference above.

createdAtFilter String

See Argument Reference above.

expirationFilter String

See Argument Reference above.

mode String

See Argument Reference above.

name String

See Argument Reference above.

region String

See Argument Reference above.

secretType String

See Argument Reference above.

updatedAtFilter String

See Argument Reference above.

Supporting Types

GetSecretAcl

GetSecretAclRead

CreatedAt string

The date the secret ACL was created.

UpdatedAt string

The date the secret ACL was last updated.

ProjectAccess bool

Whether the secret is accessible project wide.

Users List<string>

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

CreatedAt string

The date the secret ACL was created.

UpdatedAt string

The date the secret ACL was last updated.

ProjectAccess bool

Whether the secret is accessible project wide.

Users []string

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

createdAt String

The date the secret ACL was created.

updatedAt String

The date the secret ACL was last updated.

projectAccess Boolean

Whether the secret is accessible project wide.

users List

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

createdAt string

The date the secret ACL was created.

updatedAt string

The date the secret ACL was last updated.

projectAccess boolean

Whether the secret is accessible project wide.

users string[]

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

created_at str

The date the secret ACL was created.

updated_at str

The date the secret ACL was last updated.

project_access bool

Whether the secret is accessible project wide.

users Sequence[str]

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

createdAt String

The date the secret ACL was created.

updatedAt String

The date the secret ACL was last updated.

projectAccess Boolean

Whether the secret is accessible project wide.

users List

The list of user IDs, which are allowed to access the secret, when project_access is set to false.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.