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:

create

POST /repository/v1/schemas

update

PUT /repository/v1/schema/{schema}

Updates a specific Schema. You can make changes in Schema settings, including name, schema, labels, and tags.

{
    "name": "slack_webhook_test",
    "schema": {},
    "labels": [],
    "tags": {},
    "domain_id": "domain-987654321098"
}

delete

DELETE /repository/v1/schema/{schema}

Deletes a specific Schema. You must specify the name of the Schema to delete, as the name is an identifier of Schema resources.

{
    "name": "slack_webhook"
}

get

GET /repository/v1/schemas/{schema}

Gets a specific Schema. You must specify the name of the Schema to get, as the name is an identifier of Schema resources. You can use the parameter repository_id to limit the scope of the method to a specific Repository.

{
    "name": "slack_webhook",
    "repository_id": "repo-123456789012"
}

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.

{
    "query": {},
    "name": "slack_webhook",
    "service_type": "secret.credentials",
    "repository_id": "repo-123456789012"
}

stat

POST /repository/v1/schemas/stat

Message

CreateSchemaRequest

GetRepositorySchemaRequest

SchemaInfo

SchemaQuery

SchemaRequest

SchemaStatQuery

SchemasInfo

UpdateSchemaRequest

Last updated