Resource: Secret
A Secret is a logical secret whose value and versions can be accessed.
A Secret is made up of zero or more SecretVersions that represent the secret data.
| JSON representation |
|---|
{
"name": string,
"replication": {
object ( |
| Fields | |
|---|---|
name |
Output only. The resource name of the |
replication |
Required. Immutable. The replication policy of the secret data attached to the The replication policy cannot be changed after the Secret has been created. |
createTime |
Output only. The time at which the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: No more than 64 labels can be assigned to a given resource. An object containing a list of |
Replication
A policy that defines the replication configuration of data.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field replication. The replication policy for this secret. replication can be only one of the following: |
|
automatic |
The |
userManaged |
The |
Automatic
A replication policy that replicates the Secret payload without any restrictions.
UserManaged
A replication policy that replicates the Secret payload into the locations specified in [Secret.replication.user_managed.replicas][]
| JSON representation |
|---|
{
"replicas": [
{
object ( |
| Fields | |
|---|---|
replicas[] |
Required. The list of Replicas for this Cannot be empty. |
Replica
Represents a Replica for this Secret.
| JSON representation |
|---|
{ "location": string } |
| Fields | |
|---|---|
location |
The canonical IDs of the location to replicate data. For example: |
Methods |
|
|---|---|
|
Creates a new SecretVersion containing secret data and attaches it to an existing Secret. |
|
Creates a new Secret containing no SecretVersions. |
|
Deletes a Secret. |
|
Gets metadata for a given Secret. |
|
Gets the access control policy for a secret. |
|
Lists Secrets. |
|
Updates metadata of an existing Secret. |
|
Sets the access control policy on the specified secret. |
|
Returns permissions that a caller has for the specified secret. |