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
Schema Methods:
Method | Request | Response |
---|---|---|
create
POST /repository/v1/schemas
Type | Message |
---|---|
Request | |
Response |
update
PUT /repository/v1/schema/{schema}
Updates a specific Schema. You can make changes in Schema settings, including
name
,schema
,labels
, andtags
.
Type | Message |
---|---|
Request | |
Response |
delete
DELETE /repository/v1/schema/{schema}
Deletes a specific Schema. You must specify the
name
of the Schema to delete, as thename
is an identifier of Schema resources.
Type | Message |
---|---|
Request | |
Response |
get
GET /repository/v1/schemas/{schema}
Gets a specific Schema. You must specify the
name
of the Schema to get, as thename
is an identifier of Schema resources. You can use the parameterrepository_id
to limit the scope of the method to a specific Repository.
Type | Message |
---|---|
Request | |
Response |
list
GET /repository/v1/schemas
POST /repository/v1/schemas/search
Gets a list of all Schemas in a specific Repository. The parameter
repository_id
is 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.
Type | Message |
---|---|
Request | |
Response |
stat
POST /repository/v1/schemas/stat
Type | Message |
---|---|
Request | |
Response |
Message
CreateSchemaRequest
Field | Type | Required | Description |
---|---|---|---|
name | string | ✔ | |
service_type | string | ✔ | |
schema_id | string | ✔ | |
schema | ✔ | ||
labels | ✘ | ||
tags | ✘ | ||
project_id | string | ✘ | |
domain_id | string | ✔ |
GetRepositorySchemaRequest
Field | Type | Required | Description |
---|---|---|---|
name | string | ✔ | |
domain_id | string | ✔ | |
repository_id | string | ✘ | |
only | list of string | ✘ | |
schema_id | string | ✘ |
SchemaInfo
Field | Type | Description |
---|---|---|
name | string | |
service_type | string | |
schema_id | string | |
schema | ||
labels | ||
tags | ||
repository_info | ||
project_id | string | |
domain_id | string | |
created_at | string | |
updated_at | string |
SchemaQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✘ | ||
name | string | ✘ | |
service_type | string | ✘ | |
project_id | string | ✔ | |
repository_id | string | ✔ | |
domain_id | string | ✔ | |
schema_id | string | ✘ | |
state |
| ✘ |
SchemaRequest
Field | Type | Required | Description |
---|---|---|---|
name | string | ✔ | |
domain_id | string | ✔ | |
schema_id | string | ✘ |
SchemaStatQuery
Field | Type | Required | Description |
---|---|---|---|
query | ✔ | ||
repository_id | string | ✔ | |
domain_id | string | ✔ |
SchemasInfo
Field | Type | Description |
---|---|---|
results | ||
total_count |
UpdateSchemaRequest
Field | Type | Required | Description |
---|---|---|---|
name | string | ✔ | |
schema | ✘ | ||
labels | ✘ | ||
tags | ✘ | ||
domain_id | string | ✔ |
Last updated