SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • Schema
  • create
  • update
  • delete
  • get
  • list
  • stat
  • Message
  • CreateSchemaRequest
  • GetRepositorySchemaRequest
  • SchemaInfo
  • SchemaQuery
  • SchemaRequest
  • SchemaStatQuery
  • SchemasInfo
  • UpdateSchemaRequest

Was this helpful?

  1. Repository
  2. V1

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, and tags.

Type
Message

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 name of the Schema to delete, as the name is an identifier of Schema resources.

Type
Message

Request

Response

{
    "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.

Type
Message

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_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

{
    "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

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

  • NONE

  • ENABLED

  • DISABLED

✘

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

✔

PreviousRepositoryNextSample

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.ListValue
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.ListValue
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
google.protobuf.Struct
google.protobuf.ListValue
google.protobuf.Struct
create
CreateSchemaRequest
SchemaInfo
update
UpdateSchemaRequest
SchemaInfo
delete
SchemaRequest
get
GetRepositorySchemaRequest
SchemaInfo
list
SchemaQuery
SchemasInfo
stat
SchemaStatQuery
CreateSchemaRequest
SchemaInfo
UpdateSchemaRequest
SchemaInfo
SchemaRequest
GetRepositorySchemaRequest
SchemaInfo
SchemaQuery
SchemasInfo
SchemaStatQuery
RepositoryInfo
list of SchemaInfo