Schema
A Schema is a data structure used in all domains. For example, data forms of Google OAuth2 credentials or AWS access keys can be a Schema resource.
Package : spaceone.api.repository.v1
Schema
create
POST /repository/v1/schemas
Request
Response
update
PUT /repository/v1/schema/{schema}
Updates a specific Schema. You can make changes in Schema settings, including
name,schema,labels, andtags.
Request
Response
{
"name": "slack_webhook_test",
"schema": {},
"labels": [],
"tags": {},
"domain_id": "domain-987654321098"
}{
"name": "slack_webhook_test",
"service_type": "secret.credentials",
"schema": {},
"labels": [],
"tags": {
"description": "Slack Webhook"
},
"repository_info": {
"repository_id": "repo-123456789012",
"name": "Local",
"repository_type": "local"
},
"domain_id": "domain-987654321098",
"created_at": "2022-01-01T05:46:49.929Z",
"updated_at": "2022-01-01T05:46:49.929Z"
}delete
DELETE /repository/v1/schema/{schema}
Deletes a specific Schema. You must specify the
nameof the Schema to delete, as thenameis an identifier of Schema resources.
Request
Response
{
"name": "slack_webhook"
}get
GET /repository/v1/schemas/{schema}
Gets a specific Schema. You must specify the
nameof the Schema to get, as thenameis an identifier of Schema resources. You can use the parameterrepository_idto limit the scope of the method to a specific Repository.
Request
Response
{
"name": "slack_webhook",
"repository_id": "repo-123456789012"
}{
"name": "slack_webhook",
"service_type": "secret.credentials",
"schema": {},
"labels": [],
"tags": {
"description": "Slack Webhook"
},
"repository_info": {
"repository_id": "repo-123456789012",
"name": "Local",
"repository_type": "local"
},
"domain_id": "domain-987654321098",
"created_at": "2022-01-01T10:20:09.064Z",
"updated_at": "2022-01-01T10:20:09.064Z"
}list
GET /repository/v1/schemas
POST /repository/v1/schemas/search
Gets a list of all Schemas in a specific Repository. The parameter
repository_idis used as an identifier of a Repository to get its list of Schemas. You can use a query to get a filtered list of Schemas.
Request
Response
{
"query": {},
"name": "slack_webhook",
"service_type": "secret.credentials",
"repository_id": "repo-123456789012"
}{
"results": [
{
"name": "slack_webhook",
"service_type": "secret.credentials",
"schema": {},
"labels": [],
"tags": {
"description": "Slack Webhook"
},
"repository_info": {
"repository_id": "repo-123456789012",
"name": "Local",
"repository_type": "local"
},
"domain_id": "domain-987654321098",
"created_at": "2022-01-01T10:20:09.064Z",
"updated_at": "2022-01-01T10:20:09.064Z"
}
],
"total_count": 1
}stat
POST /repository/v1/schemas/stat
Request
Response
Message
CreateSchemaRequest
name
string
✔
service_type
string
✔
schema_id
string
✔
project_id
string
✘
domain_id
string
✔
GetRepositorySchemaRequest
name
string
✔
domain_id
string
✔
repository_id
string
✘
only
list of string
✘
schema_id
string
✘
SchemaInfo
name
string
service_type
string
schema_id
string
project_id
string
domain_id
string
created_at
string
updated_at
string
SchemaQuery
name
string
✘
service_type
string
✘
project_id
string
✔
repository_id
string
✔
domain_id
string
✔
schema_id
string
✘
state
NONE
ENABLED
DISABLED
✘
SchemaRequest
name
string
✔
domain_id
string
✔
schema_id
string
✘
SchemaStatQuery
SchemasInfo
UpdateSchemaRequest
name
string
✔
domain_id
string
✔
Last updated
Was this helpful?