Secret
A Secret is an external data, encrypted by CluodForet.
Package : spaceone.api.secret.v1
Secret
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.
Request
Response
{
"name": "aws-dev",
"data": "********",
"secret_type": "CREDENTIALS",
"schema": "aws_access_key",
"service_account_id": "sa-123456789012",
"project_id": "project-123456789012",
"domain_id": "domain-123456789012"
}
update
PUT /secret/v1/secret/{secret_id}
Request
Response
delete
DELETE /secret/v1/secret/{secret_id}
Deletes a specific Secret. You must specify the
secret_id
of the Secret to delete.
Request
Response
{
"secret_id": "secret-123456789012",
"domain_id": "domain-123456789012"
}
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.
Request
Response
{
"secret_id": "secret-123456789012",
"data": "********",
"domain_id": "domain-123456789012"
}
get_data
GET /secret/v1/secret/{secret_id}/data
Gets a specific Secret. Prints detailed information about the Secret, including
name
,tags
,schema
, andprovider
.
Request
Response
{
"secret_id": "secret-123456789012",
"domain_id": "domain-123456789012"
}
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.
Request
Response
{
"secret_id": "secret-123456789012",
"domain_id": "domain-123456789012"
}
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.
Request
Response
{
"query": {},
"domain_id": "domain-123456789012"
}
stat
POST /secret/v1/secrets/stat
Request
Response
Message
CreateSecretRequest
name
string
✔
secret_type
NONE
CREDENTIALS
✔
schema
string
✘
service_account_id
string
✘
project_id
string
✘
domain_id
string
✔
GetSecretRequest
secret_id
string
✔
domain_id
string
✔
only
list of string
✘
SecretDataInfo
SecretInfo
secret_id
string
name
string
secret_type
NONE
CREDENTIALS
schema
string
provider
string
service_account_id
string
project_id
string
domain_id
string
created_at
string
SecretQuery
secret_id
string
✘
name
string
✘
secret_type
NONE
CREDENTIALS
✘
secret_group_id
string
✘
schema
string
✘
provider
string
✘
service_account_id
string
✘
include_secret_group
bool
✘
domain_id
string
✔
SecretRequest
secret_id
string
✔
domain_id
string
✔
SecretStatQuery
domain_id
string
✔
SecretsInfo
UpdateSecretDataRequest
UpdateSecretRequest
secret_id
string
✔
name
string
✘
project_id
string
✘
domain_id
string
✔
release_project
bool
✘
Last updated
Was this helpful?