Secret
A Secret is an external data, encrypted by CluodForet.
Package : spaceone.api.secret.v1
Secret
Secret Methods:
Method | Request | Response |
---|---|---|
create
POST /secret/v1/secrets
Creates a new Secret. When creating the resource, external
data
is encrypted, and asecret_id
is issued for data access by other microservices.
Type | Message |
---|---|
Request | |
Response |
update
PUT /secret/v1/secret/{secret_id}
Type | Message |
---|---|
Request | |
Response |
delete
DELETE /secret/v1/secret/{secret_id}
Deletes a specific Secret. You must specify the
secret_id
of the Secret to delete.
Type | Message |
---|---|
Request | |
Response |
update_data
PUT /secret/v1/secret/{secret_id}/data
Updates encrypted data of a specific Secret resource. For example, to change the parameter
data
, external data to encrypt, you can useupdate_data
to create new encrypted data based on the changeddata
and store it in the Secret resource.
Type | Message |
---|---|
Request | |
Response |
get_data
GET /secret/v1/secret/{secret_id}/data
Gets a specific Secret. Prints detailed information about the Secret, including
name
,tags
,schema
, andprovider
.
Type | Message |
---|---|
Request | |
Response |
get
GET /secret/v1/secret/{secret_id}
Gets a specific Post. You must specify the
post_id
of the Post to get, and theboard_id
of the Board where the child Post to get belongs. Prints detailed information about the Post.
Type | Message |
---|---|
Request | |
Response |
list
GET /secret/v1/secrets
POST /secret/v1/secrets/search
Gets a list of all Posts. You can use a query to get a filtered list of Posts.
Type | Message |
---|---|
Request | |
Response |
stat
POST /secret/v1/secrets/stat
Type | Message |
---|---|
Request | |
Response |
Message
CreateSecretRequest
Field | Type | Required | Description |
---|---|---|---|
name | string | ✔ | |
data | ✔ | ||
secret_type |
| ✔ | |
tags | ✘ | ||
schema | string | ✘ | |
service_account_id | string | ✘ | |
project_id | string | ✘ | |
domain_id | string | ✔ |
GetSecretRequest
Field | Type | Required | Description |
---|---|---|---|
secret_id | string | ✔ | |
domain_id | string | ✔ | |
only | list of string | ✘ |
SecretDataInfo
Field | Type | Description |
---|---|---|
data | ||
encrypted | bool | |
encrypt_options |
SecretInfo
Field | Type | Description |
---|---|---|
secret_id | string | |
name | string | |
secret_type |
| |
secret_groups | ||
tags | ||
schema | string | |
provider | string | |
service_account_id | string | |
project_id | string | |
domain_id | string | |
created_at | string |
SecretQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✘ | ||
secret_id | string | ✘ | |
name | string | ✘ | |
secret_type |
| ✘ | |
secret_group_id | string | ✘ | |
schema | string | ✘ | |
provider | string | ✘ | |
service_account_id | string | ✘ | |
include_secret_group | bool | ✘ | |
domain_id | string | ✔ |
SecretRequest
Field | Type | Required | Description |
---|---|---|---|
secret_id | string | ✔ | |
domain_id | string | ✔ |
SecretStatQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✔ | ||
domain_id | string | ✔ |
SecretsInfo
Field | Type | Description |
---|---|---|
results | ||
total_count |
UpdateSecretDataRequest
Field | Type | Required | Description |
---|---|---|---|
secret_id | string | ✔ | |
data | ✔ | ||
domain_id | string | ✔ | |
schema | string | ✘ |
UpdateSecretRequest
Field | Type | Required | Description |
---|---|---|---|
secret_id | string | ✔ | |
name | string | ✘ | |
tags | ✘ | ||
project_id | string | ✘ | |
domain_id | string | ✔ | |
release_project | bool | ✘ |
Last updated