SecretV1

Create a SecretV1 Resource

def SecretV1(resource_name, opts=None, acl=None, algorithm=None, bit_length=None, expiration=None, metadata=None, mode=None, name=None, payload=None, payload_content_encoding=None, payload_content_type=None, region=None, secret_type=None, __props__=None);
func NewSecretV1(ctx *Context, name string, args *SecretV1Args, opts ...ResourceOption) (*SecretV1, error)
public SecretV1(string name, SecretV1Args? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SecretV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SecretV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecretV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecretV1 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SecretV1 resource accepts the following input properties:

Acl Pulumi.OpenStack.KeyManager.Inputs.SecretV1AclArgs

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

Algorithm string

Metadata provided by a user or system for informational purposes.

BitLength int

Metadata provided by a user or system for informational purposes.

Expiration string

The expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

Metadata Dictionary<string, object>

Additional Metadata for the secret.

Mode string

Metadata provided by a user or system for informational purposes.

Name string

Human-readable name for the Secret. Does not have to be unique.

Payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

PayloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

PayloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

SecretType string

Used to indicate the type of secret being stored. For more information see Secret types.

Acl SecretV1Acl

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

Algorithm string

Metadata provided by a user or system for informational purposes.

BitLength int

Metadata provided by a user or system for informational purposes.

Expiration string

The expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

Metadata map[string]interface{}

Additional Metadata for the secret.

Mode string

Metadata provided by a user or system for informational purposes.

Name string

Human-readable name for the Secret. Does not have to be unique.

Payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

PayloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

PayloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

SecretType string

Used to indicate the type of secret being stored. For more information see Secret types.

acl SecretV1Acl

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

algorithm string

Metadata provided by a user or system for informational purposes.

bitLength number

Metadata provided by a user or system for informational purposes.

expiration string

The expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

metadata {[key: string]: any}

Additional Metadata for the secret.

mode string

Metadata provided by a user or system for informational purposes.

name string

Human-readable name for the Secret. Does not have to be unique.

payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

payloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

payloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

secretType string

Used to indicate the type of secret being stored. For more information see Secret types.

acl Dict[SecretV1Acl]

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

algorithm str

Metadata provided by a user or system for informational purposes.

bit_length float

Metadata provided by a user or system for informational purposes.

expiration str

The expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

metadata Dict[str, Any]

Additional Metadata for the secret.

mode str

Metadata provided by a user or system for informational purposes.

name str

Human-readable name for the Secret. Does not have to be unique.

payload str

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

payload_content_encoding str

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

payload_content_type str

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

region str

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

secret_type str

Used to indicate the type of secret being stored. For more information see Secret types.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecretV1 resource produces the following output properties:

AllMetadata Dictionary<string, object>

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

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.

Id string
The provider-assigned unique ID for this managed resource.
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.

AllMetadata map[string]interface{}

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

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.

Id string
The provider-assigned unique ID for this managed resource.
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.

allMetadata {[key: string]: any}

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

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.

id string
The provider-assigned unique ID for this managed resource.
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.

all_metadata Dict[str, Any]

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

content_types Dict[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.

id str
The provider-assigned unique ID for this managed resource.
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.

Look up an Existing SecretV1 Resource

Get an existing SecretV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SecretV1State, opts?: CustomResourceOptions): SecretV1
static get(resource_name, id, opts=None, acl=None, algorithm=None, all_metadata=None, bit_length=None, content_types=None, created_at=None, creator_id=None, expiration=None, metadata=None, mode=None, name=None, payload=None, payload_content_encoding=None, payload_content_type=None, region=None, secret_ref=None, secret_type=None, status=None, updated_at=None, __props__=None);
func GetSecretV1(ctx *Context, name string, id IDInput, state *SecretV1State, opts ...ResourceOption) (*SecretV1, error)
public static SecretV1 Get(string name, Input<string> id, SecretV1State? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Acl Pulumi.OpenStack.KeyManager.Inputs.SecretV1AclArgs

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

Algorithm string

Metadata provided by a user or system for informational purposes.

AllMetadata Dictionary<string, object>

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

BitLength int

Metadata provided by a user or system for informational purposes.

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 expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

Metadata Dictionary<string, object>

Additional Metadata for the secret.

Mode string

Metadata provided by a user or system for informational purposes.

Name string

Human-readable name for the Secret. Does not have to be unique.

Payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

PayloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

PayloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

SecretRef string

The secret reference / where to find the secret.

SecretType string

Used to indicate the type of secret being stored. For more information see Secret types.

Status string

The status of the secret.

UpdatedAt string

The date the secret ACL was last updated.

Acl SecretV1Acl

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

Algorithm string

Metadata provided by a user or system for informational purposes.

AllMetadata map[string]interface{}

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

BitLength int

Metadata provided by a user or system for informational purposes.

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 expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

Metadata map[string]interface{}

Additional Metadata for the secret.

Mode string

Metadata provided by a user or system for informational purposes.

Name string

Human-readable name for the Secret. Does not have to be unique.

Payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

PayloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

PayloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

Region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

SecretRef string

The secret reference / where to find the secret.

SecretType string

Used to indicate the type of secret being stored. For more information see Secret types.

Status string

The status of the secret.

UpdatedAt string

The date the secret ACL was last updated.

acl SecretV1Acl

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

algorithm string

Metadata provided by a user or system for informational purposes.

allMetadata {[key: string]: any}

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

bitLength number

Metadata provided by a user or system for informational purposes.

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 expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

metadata {[key: string]: any}

Additional Metadata for the secret.

mode string

Metadata provided by a user or system for informational purposes.

name string

Human-readable name for the Secret. Does not have to be unique.

payload string

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

payloadContentEncoding string

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

payloadContentType string

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

region string

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

secretRef string

The secret reference / where to find the secret.

secretType string

Used to indicate the type of secret being stored. For more information see Secret types.

status string

The status of the secret.

updatedAt string

The date the secret ACL was last updated.

acl Dict[SecretV1Acl]

Allows to control an access to a secret. Currently only the read operation is supported. If not specified, the secret is accessible project wide.

algorithm str

Metadata provided by a user or system for informational purposes.

all_metadata Dict[str, Any]

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

bit_length float

Metadata provided by a user or system for informational purposes.

content_types Dict[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 expiration time of the secret in the RFC3339 timestamp format (e.g. 2019-03-09T12:58:49Z). If omitted, a secret will never expire. Changing this creates a new secret.

metadata Dict[str, Any]

Additional Metadata for the secret.

mode str

Metadata provided by a user or system for informational purposes.

name str

Human-readable name for the Secret. Does not have to be unique.

payload str

The secret’s data to be stored. payload_content_type must also be supplied if payload is included.

payload_content_encoding str

(required if payload is encoded) The encoding used for the payload to be able to include it in the JSON request. Must be either base64 or binary.

payload_content_type str

(required if payload is included) The media type for the content of the payload. Must be one of text/plain, text/plain;charset=utf-8, text/plain; charset=utf-8, application/octet-stream, application/pkcs8.

region str

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a secret. If omitted, the region argument of the provider is used. Changing this creates a new V1 secret.

secret_ref str

The secret reference / where to find the secret.

secret_type str

Used to indicate the type of secret being stored. For more information see Secret types.

status str

The status of the secret.

updated_at str

The date the secret ACL was last updated.

Supporting Types

SecretV1Acl

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Read Pulumi.OpenStack.KeyManager.Inputs.SecretV1AclReadArgs
Read SecretV1AclRead
read SecretV1AclRead
read Dict[SecretV1AclRead]

SecretV1AclRead

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CreatedAt string

The date the secret ACL was created.

ProjectAccess bool

Whether the secret is accessible project wide. Defaults to true.

UpdatedAt string

The date the secret ACL was last updated.

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.

ProjectAccess bool

Whether the secret is accessible project wide. Defaults to true.

UpdatedAt string

The date the secret ACL was last updated.

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.

projectAccess boolean

Whether the secret is accessible project wide. Defaults to true.

updatedAt string

The date the secret ACL was last updated.

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.

projectAccess bool

Whether the secret is accessible project wide. Defaults to true.

updated_at str

The date the secret ACL was last updated.

users List[str]

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.