Secrets¶
Generated from the gateway schema. Do not edit.
Queries¶
managedSecret¶
query { managedSecret(name: String!): ManagedSecret }
Requires: tenant VIEWER
| Argument | Type | Description |
|---|---|---|
name |
String! |
Returns: ManagedSecret
managedSecrets¶
Every secret in the tenant's namespace, without values.
query { managedSecrets: [ManagedSecret!]! }
Requires: tenant VIEWER
Returns: [ManagedSecret!]!
secret¶
query { secret(name: String!): Secret }
Requires: an authenticated member of the tenant
| Argument | Type | Description |
|---|---|---|
name |
String! |
Returns: Secret
secretByCluster¶
query { secretByCluster(clusterId: ID, name: String!, namespace: String): Secret }
Requires: an authenticated member of the tenant
| Argument | Type | Description |
|---|---|---|
clusterId |
ID |
Optional. Leave it out: the platform uses the cluster of your region. |
name |
String! |
|
namespace |
String |
Returns: Secret
secretManagerStatus¶
query { secretManagerStatus: SecretManagerStatus! }
Requires: tenant VIEWER
Returns: SecretManagerStatus!
secrets¶
query { secrets: [Secret!]! }
Requires: an authenticated member of the tenant
Returns: [Secret!]!
secretsByCluster¶
query { secretsByCluster(clusterId: ID, namespace: String): SecretListResult! }
Requires: an authenticated member of the tenant
| Argument | Type | Description |
|---|---|---|
clusterId |
ID |
Optional. Leave it out: the platform uses the cluster of your region. |
namespace |
String |
Returns: SecretListResult!
Mutations¶
createManagedSecret¶
mutation { createManagedSecret(input: CreateManagedSecretInput!): ManagedSecret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
CreateManagedSecretInput! |
Returns: ManagedSecret!
createSecret¶
mutation { createSecret(input: CreateSecretInput!): Secret }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
CreateSecretInput! |
Returns: Secret
deleteManagedSecret¶
mutation { deleteManagedSecret(name: String!): Boolean! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
Returns: Boolean!
deleteSecret¶
Deletes a secret created through the console. Refused while a service still refers to it.
mutation { deleteSecret(name: String!): Boolean! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
Returns: Boolean!
destroySecretVersion¶
Removes a version's content for good. The current and pinned versions are refused.
mutation { destroySecretVersion(name: String!, version: Int!): SecretVersion! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
version |
Int! |
Returns: SecretVersion!
pinSecretVersion¶
Creates a delivery copy named
mutation { pinSecretVersion(name: String!, version: Int!): PinnedSecretVersion! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
version |
Int! |
Returns: PinnedSecretVersion!
putSecretVersion¶
Adds a version, which becomes current, and rewrites the Secret workloads read.
mutation { putSecretVersion(input: PutSecretVersionInput!): ManagedSecret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
PutSecretVersionInput! |
Returns: ManagedSecret!
redeploySecretConsumers¶
Starts a new revision of the services still running on older values of the secret (or of the named services). Returns the services redeployed.
mutation { redeploySecretConsumers(name: String!, services: [String!]): [String!]! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
services |
[String!] |
Returns: [String!]!
restoreSecretVersion¶
Makes an older version's content current again, as a new version.
mutation { restoreSecretVersion(name: String!, version: Int!): ManagedSecret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
version |
Int! |
Returns: ManagedSecret!
revealSecretValue¶
One value in the clear. A mutation, not a query, so that every reveal is in the audit log (the value itself never is).
mutation { revealSecretValue(name: String!, key: String!, version: Int): RevealedSecretValue! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
key |
String! |
|
version |
Int |
Returns: RevealedSecretValue!
rotateSecret¶
Replaces the listed entries with generated values, as a new version.
mutation { rotateSecret(input: RotateSecretInput!): ManagedSecret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
RotateSecretInput! |
Returns: ManagedSecret!
setSecretVersionEnabled¶
mutation { setSecretVersionEnabled(name: String!, version: Int!, enabled: Boolean!): SecretVersion! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
version |
Int! |
|
enabled |
Boolean! |
Returns: SecretVersion!
unpinSecretVersion¶
mutation { unpinSecretVersion(name: String!, version: Int!): SecretVersion! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
version |
Int! |
Returns: SecretVersion!
updateSecret¶
Replaces the content of a secret created through the console. Services that read it keep the old values until their next revision.
mutation { updateSecret(input: UpdateSecretInput!): Secret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
UpdateSecretInput! |
Returns: Secret!
updateSecretMetadata¶
mutation { updateSecretMetadata(input: UpdateSecretMetadataInput!): ManagedSecret! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
UpdateSecretMetadataInput! |
Returns: ManagedSecret!