cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
Powered by GitBook
On this page
  • Schema
  • create
  • update
  • delete
  • get
  • list
  • stat
  • Message
  • CreateSchemaRequest
  • GetRepositorySchemaRequest
  • SchemaInfo
  • SchemaQuery
  • SchemaRequest
  • SchemaStatQuery
  • SchemasInfo
  • UpdateSchemaRequest
  1. content
  2. en
  3. repository
  4. 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

Creates a new Schema. You must specify the parameters: service_type, name, and schema(data structure). With the parameter domain_id, you can choose whether you will create a Schema in Local or externally. The Schema created includes repository_info, information about where the resource is managed.

POST /repository/v1/schema/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • domain_id (string) Required

  • labels (ListValue)

  • tags (Struct)

  • project_id (string)

{{< highlight json >}} { "name": "slack_webhook", "service_type": "secret.credentials", "schema": {}, "labels": [], "tags": { "description": "Slack Webhook" }, "domain_id": "domain-987654321098" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • labels (ListValue) Required

  • tags (Struct) Required

  • repository_info (RepositoryInfo) Required

  • project_id (string) Required

  • domain_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{{< highlight json >}} { "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-01T05:46:49.929Z", "updated_at": "2022-01-01T05:46:49.929Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

update

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

POST /repository/v1/schema/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • name (string) Required

  • domain_id (string) Required

  • schema (Struct)

  • labels (ListValue)

  • tags (Struct)

{{< highlight json >}} { "name": "slack_webhook_test", "schema": {}, "labels": [], "tags": {}, "domain_id": "domain-987654321098" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • labels (ListValue) Required

  • tags (Struct) Required

  • repository_info (RepositoryInfo) Required

  • project_id (string) Required

  • domain_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{{< highlight json >}} { "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-01T05:46:49.929Z", "updated_at": "2022-01-01T05:46:49.929Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

delete

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

POST /repository/v1/schema/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

  • name (string) Required

  • domain_id (string) Required

  • schema_id (string)

{{< highlight json >}} { "name": "slack_webhook" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

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.

POST /repository/v1/schema/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • name (string) Required

  • domain_id (string) Required

  • repository_id (string)

  • only (string) Repeated

  • schema_id (string)

{{< highlight json >}} { "name": "slack_webhook", "repository_id": "repo-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • labels (ListValue) Required

  • tags (Struct) Required

  • repository_info (RepositoryInfo) Required

  • project_id (string) Required

  • domain_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{{< highlight json >}} { "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-01T05:46:49.929Z", "updated_at": "2022-01-01T05:46:49.929Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

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.

POST /repository/v1/schema/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • project_id (string) Required

  • repository_id (string) Required

  • domain_id (string) Required

  • query (Query)

  • name (string)

  • service_type (string)

  • schema_id (string)

  • state (State)

{{< highlight json >}} { "query": {}, "name": "slack_webhook", "service_type": "secret.credentials", "repository_id": "repo-123456789012" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (SchemaInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "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 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /repository/v1/schema/stat

Message

CreateSchemaRequest

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • domain_id (string) Required

  • labels (ListValue)

  • tags (Struct)

  • project_id (string)

GetRepositorySchemaRequest

  • name (string) Required

  • domain_id (string) Required

  • repository_id (string)

  • only (string) Repeated

  • schema_id (string)

SchemaInfo

  • name (string) Required

  • service_type (string) Required

  • schema_id (string) Required

  • schema (Struct) Required

  • labels (ListValue) Required

  • tags (Struct) Required

  • repository_info (RepositoryInfo) Required

  • project_id (string) Required

  • domain_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

SchemaQuery

  • project_id (string) Required

  • repository_id (string) Required

  • domain_id (string) Required

  • query (Query)

  • name (string)

  • service_type (string)

  • schema_id (string)

  • state (State)

SchemaRequest

  • name (string) Required

  • domain_id (string) Required

  • schema_id (string)

SchemaStatQuery

  • query (StatisticsQuery) Required

  • repository_id (string) Required

  • domain_id (string) Required

SchemasInfo

  • results (SchemaInfo) Repeated Required

  • total_count (int32) Required

UpdateSchemaRequest

  • name (string) Required

  • domain_id (string) Required

  • schema (Struct)

  • labels (ListValue)

  • tags (Struct)

PreviousRepositoryNextv1

Last updated 1 year ago

CreateSchemaRequest
UpdateSchemaRequest
SchemaRequest
GetRepositorySchemaRequest
SchemaQuery
SchemaInfo
SchemaInfo
SchemaInfo
SchemasInfo
create
CreateSchemaRequest
SchemaInfo
update
UpdateSchemaRequest
SchemaInfo
delete
SchemaRequest
Empty
get
GetRepositorySchemaRequest
SchemaInfo
list
SchemaQuery
SchemasInfo
stat
SchemaStatQuery
Struct