SAKURA internet Kms Key API

The kms-key API from SAKURA internet — 7 operation(s) for kms-key.

Operations 10

GET /kms/keys List keys #
POST /kms/keys Create key #
GET /kms/keys/{resource_id} Read key #
PUT /kms/keys/{resource_id} Update key #
DELETE /kms/keys/{resource_id} Delete key #
POST /kms/keys/{resource_id}/decrypt Decrypt data with key #
POST /kms/keys/{resource_id}/encrypt Encrypt data with key #
POST /kms/keys/{resource_id}/rotate Rotate key #
POST /kms/keys/{resource_id}/schedule-destruction Schedule key destruction #
POST /kms/keys/{resource_id}/status Change key status #

Documentation

📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/addon-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/ai-engine-inference-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/ai-engine-rag-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/apigw-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/apprun-dedicated-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/apprun-shared-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/eventbus-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/iam-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/monitoring-suite-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/networking-suite-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/nosql-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/objectstorage-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/security-control-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/security-encryption-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/seg-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/simple-notification-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/simplemq-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/simplemq-sacloud-api/index.html
📖
Documentation
https://manual.sakura.ad.jp/api/cloud/portal/workflows-api/index.html
📖
Documentation
https://github.com/sacloud/phy-api-go

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-search-post-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-streaming-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-datalake-post-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-deployment-status-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-ddos-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-waf-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-tts-synthesis-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-tts-audio-query-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-speech-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-chat-completion-request-tool-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-chat-completion-request-developer-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-chat-completion-request-system-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-chat-query-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-query-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-document-upload-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-document-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-document-chunk-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-document-list-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-route-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-oidc-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-get-certificates-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-plan-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-domain-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-certificate-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-application-version-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-list-worker-nodes-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-list-load-balancer-nodes-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-auto-scaling-group-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-cluster-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-read-worker-node-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-patch-application-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-application-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-handler-create-application-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-handler-read-application-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-handler-patch-application-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-handler-read-version-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-common-service-item-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-common-service-item-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-update-common-service-item-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-set-secret-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-user-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-ssoprofile-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-auth-conditions-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-project-api-key-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-project-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-service-principal-key-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-wrapped-log-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-log-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-wrapped-trace-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-wrapped-metrics-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-trace-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-metrics-storage-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-subnet-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-subnet-group-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-subnet-group-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-subnet-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-address-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-interface-connection-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-nosql-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-nosql-status-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-bucket-billing-item-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-quota-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-bucket-penalty-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-plan-item-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-plan-change-req-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-status-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-automated-action-output-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-automated-action-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-activation-output-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-evaluation-rule-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-activation-update-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-activation-create-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-cloud-hsmdocument-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-cloud-hsmsoftware-license-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-cloud-hsmclient-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-secret-response-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-cloud-hsmlist-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-paginated-vault-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-list-service-endpoint-gateways-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-read-service-endpoint-gateway-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-create-service-endpoint-gateway-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-appliance-apply-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-update-service-endpoint-gateway-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-models-appliance-read-service-endpoint-gateway-interface-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-post-common-service-item-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-put-common-service-item-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-reorder-notification-routing-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-list-common-service-items-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-check-destination-status-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-new-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-send-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-create-queue-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-config-queue-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-server-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-dedicated-subnet-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-interface-port-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-service-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-private-network-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sakura-internet/refs/heads/main/json-schema/sakura-internet-port-channel-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sakura-internet:sakura-internet-kms-key-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sakura-internet-kms-key-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sakura Internet Kms Key API
  version: 1.2.0
  description: 'Operations tagged kms-key across 2 of this provider''s published API definitions: security-encryption-api.yaml, sakura-internet-security-encryption-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
  description: 石狩第1ゾーン
- url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
  description: 石狩第2ゾーン
- url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
  description: 石狩第3ゾーン
- url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
  description: 東京第1ゾーン
- url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
  description: 東京第2ゾーン
security:
- basicAuth: []
tags:
- name: kms-key
paths:
  /kms/keys:
    get:
      operationId: listKeys
      parameters:
      - name: Count
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: From
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - kms-key
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedKeyList'
          description: ''
      summary: List keys
      x-summary-source: derived
    post:
      operationId: createKey
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedCreateKeyRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedCreateKeyResponse'
          description: ''
      summary: Create key
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}:
    get:
      operationId: readKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKey'
          description: ''
      summary: Read key
      x-summary-source: derived
    put:
      operationId: updateKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedKeyRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKey'
          description: ''
      summary: Update key
      x-summary-source: derived
    delete:
      operationId: deleteKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      responses:
        '204':
          description: No response body
      summary: Delete key
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}/decrypt:
    post:
      operationId: decryptDataWithKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedDecryptionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKeyPlain'
          description: ''
      summary: Decrypt data with key
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}/encrypt:
    post:
      operationId: encryptDataWithKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedEncryptionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKeyCipher'
          description: ''
      summary: Encrypt data with key
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}/rotate:
    post:
      operationId: rotateKey
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKey'
          description: ''
      summary: Rotate key
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}/schedule-destruction:
    post:
      operationId: scheduleKeyDestruction
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedScheduleDestructionKeyRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedKeyScheduledDestruction'
          description: ''
      summary: Schedule key destruction
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
  /kms/keys/{resource_id}/status:
    post:
      operationId: changeKeyStatus
      parameters:
      - in: path
        name: resource_id
        schema:
          type: string
          title: リソースID
        required: true
      tags:
      - kms-key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WrappedChangeKeyStateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WrappedChangeKeyState'
          description: ''
      summary: Change key status
      x-summary-source: derived
    servers:
    - url: https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1
      description: 石狩第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1
      description: 石狩第2ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/is1c/api/cloud/1.1
      description: 石狩第3ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1
      description: 東京第1ゾーン
    - url: https://secure.sakura.ad.jp/cloud/zone/tk1b/api/cloud/1.1
      description: 東京第2ゾーン
components:
  schemas:
    WrappedChangeKeyState:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/ChangeKeyState'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    WrappedCreateKeyResponse:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/CreateKeyResponse'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    WrappedKey:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/Key'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    CreateKeyResponse:
      type: object
      description: 鍵の作成結果
      properties:
        ID:
          type: string
          readOnly: true
          example: '110000000000'
        CreatedAt:
          $ref: '#/components/schemas/DateTime'
        ModifiedAt:
          $ref: '#/components/schemas/DateTime'
        ServiceClass:
          enum:
          - cloud/kms/key
          - cloud/kms/key/legacy
          type: string
          description: '* `cloud/kms/key` - 通常

            * `cloud/kms/key/legacy` - レガシー'
          x-spec-enum-id: cdc4cc214c741297
          readOnly: true
          title: サービスクラス
        Name:
          type: string
          title: 名前
          maxLength: 255
        Description:
          type: string
          title: 説明
        KeyOrigin:
          enum:
          - generated
          - imported
          type: string
          description: '* `generated` - 生成

            * `imported` - インポート'
          x-spec-enum-id: ce5bfb1ae3eae901
          readOnly: true
          title: 鍵の生成元
        LatestVersion:
          type: integer
          readOnly: true
          example: 0
        Status:
          enum:
          - active
          - restricted
          - suspended
          - pending_destruction
          - destroyed
          type: string
          description: '* `active` - 有効

            * `restricted` - 制限付き

            * `suspended` - 一時停止

            * `pending_destruction` - 削除保留

            * `destroyed` - 削除済み'
          x-spec-enum-id: 16d501464180eaec
          readOnly: true
          title: 鍵の状態
        DeletionScheduledAfter:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          title: 削除予定日時
          description: この日時以降に削除される予定です
          example: '2025-02-05T12:19:22.551827+09:00'
        Tags:
          type:
          - array
          - 'null'
          items:
            type: string
            minLength: 1
      required:
      - CreatedAt
      - Description
      - ID
      - KeyOrigin
      - LatestVersion
      - ModifiedAt
      - Name
      - ServiceClass
      - Status
      - Tags
    PaginatedKeyList:
      type: object
      required:
      - Count
      - From
      - Total
      - Keys
      - is_ok
      properties:
        Count:
          type: integer
          example: 10
        From:
          type: integer
          example: 0
        Total:
          type: integer
          example: 10
        Keys:
          type: array
          items:
            $ref: '#/components/schemas/Key'
        is_ok:
          type: boolean
          example: true
    WrappedCreateKeyRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/CreateKeyRequest'
      required:
      - Key
    CreateKeyRequest:
      type: object
      properties:
        Name:
          type: string
          minLength: 1
          title: 名前
          maxLength: 255
        Description:
          type: string
          title: 説明
        Tags:
          type:
          - array
          - 'null'
          items:
            type: string
            minLength: 1
        PlainKey:
          type: string
          writeOnly: true
          minLength: 1
      required:
      - Name
    KeyRequest:
      type: object
      properties:
        Name:
          type: string
          minLength: 1
          title: 名前
          maxLength: 255
        Description:
          type: string
          title: 説明
        Tags:
          type:
          - array
          - 'null'
          items:
            type: string
            minLength: 1
      required:
      - Name
    KeyCipher:
      type: object
      properties:
        Cipher:
          type: string
          description: Base64 エンコードされた暗号文
      required:
      - Cipher
    WrappedChangeKeyStateRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/ChangeKeyStateRequest'
      required:
      - Key
    WrappedScheduleDestructionKeyRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/ScheduleDestructionKeyRequest'
      required:
      - Key
    ChangeKeyStateRequest:
      type: object
      description: 鍵の状態変更
      properties:
        Status:
          enum:
          - active
          - restricted
          - suspended
          type: string
          description: '* `active` - 有効

            * `restricted` - 制限付き

            * `suspended` - 一時停止'
          x-spec-enum-id: c07b47aad4f4d40c
      required:
      - Status
    ChangeKeyState:
      type: object
      description: 鍵の状態変更
      properties:
        Status:
          enum:
          - active
          - restricted
          - suspended
          type: string
          description: '* `active` - 有効

            * `restricted` - 制限付き

            * `suspended` - 一時停止'
          x-spec-enum-id: c07b47aad4f4d40c
      required:
      - Status
    WrappedKeyScheduledDestruction:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/KeyScheduledDestruction'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    WrappedKeyRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/KeyRequest'
      required:
      - Key
    WrappedDecryptionRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/DecryptionRequest'
      required:
      - Key
    WrappedKeyPlain:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/KeyPlain'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    DateTime:
      type: string
      format: iso8601
      example: '2025-02-05T12:19:22.551827+09:00'
    ScheduleDestructionKeyRequest:
      type: object
      description: 鍵の削除スケジュール設定
      properties:
        PendingDays:
          type: integer
          maximum: 90
          minimum: 7
          default: 7
          description: 削除をスケジュールする日数
          example: 7
    WrappedEncryptionRequest:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/EncryptionRequest'
      required:
      - Key
    KeyScheduledDestruction:
      type: object
      properties:
        Status:
          enum:
          - active
          - restricted
          - suspended
          - pending_destruction
          - destroyed
          type: string
          description: '* `active` - 有効

            * `restricted` - 制限付き

            * `suspended` - 一時停止

            * `pending_destruction` - 削除保留

            * `destroyed` - 削除済み'
          x-spec-enum-id: 16d501464180eaec
        DeletionScheduledAfter:
          type:
          - string
          - 'null'
          format: date-time
          example: '2025-02-05T12:19:22.551827+09:00'
      required:
      - DeletionScheduledAfter
      - Status
    DecryptionRequest:
      type: object
      properties:
        Cipher:
          type: string
          minLength: 1
          description: Base64 エンコードされた暗号文
          maxLength: 3072
      required:
      - Cipher
    WrappedKeyCipher:
      type: object
      properties:
        Key:
          $ref: '#/components/schemas/KeyCipher'
        is_ok:
          type: boolean
          example: true
      required:
      - Key
      - is_ok
    Key:
      type: object
      properties:
        ID:
          type: string
          readOnly: true
          example: '110000000000'
        CreatedAt:
          $ref: '#/components/schemas/DateTime'
        ModifiedAt:
          $ref: '#/components/schemas/DateTime'
        ServiceClass:
          enum:
          - cloud/kms/key
          - cloud/kms/key/legacy
          type: string
          description: '* `cloud/kms/key` - 通常

            * `cloud/kms/key/legacy` - レガシー'
          x-spec-enum-id: cdc4cc214c741297
          readOnly: true
          title: サービスクラス
        Name:
          type: string
          title: 名前
          maxLength: 255
        Description:
          type: string
          title: 説明
        KeyOrigin:
          enum:
          - generated
          - imported
          type: string
          description: '* `generated` - 生成

            * `imported` - インポート'
          x-spec-enum-id: ce5bfb1ae3eae901
          readOnly: true
          title: 鍵の生成元
        LatestVersion:
          type: integer
          readOnly: true
          example: 0
        Status:
          enum:
          - active
          - restricted
          - suspended
          - pending_destruction
          - destroyed
          type: string
          description: '* `active` - 有効

            * `restricted` - 制限付き

            * `suspended` - 一時停止

            * `pending_destruction` - 削除保留

            * `destroyed` - 削除済み'
          x-spec-enum-id: 16d501464180eaec
          readOnly: true
          title: 鍵の状態
        DeletionScheduledAfter:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          title: 削除予定日時
          description: この日時以降に削除される予定です
          example: '2025-02-05T12:19:22.551827+09:00'
        Tags:
          type:
          - array
          - 'null'
          items:
            type: string
            minLength: 1
      required:
      - CreatedAt
      - Description
      - ID
      - KeyOrigin
      - LatestVersion
      - ModifiedAt
      - Name
      - ServiceClass
      - Status
      - Tags
    EncryptionRequest:
      type: object
      properties:
        Plain:
          type: string
          description: Base64 エンコードされた平文
        Algo:
          enum:
          - aes-256-gcm
          - aes-256-cbc
          - aes-256-kw
          type: string
          x-spec-enum-id: 1aa04582035002e4
          default: aes-256-gcm
          description: '暗号化アルゴリズム


            * `aes-256-gcm` - AES256-GCM(default)

            * `aes-256-cbc` - AES256-CBC

            * `aes-256-kw` - AES256-KW'
      required:
      - Plain
    KeyPlain:
      type: object
      properties:
        Plain:
          type: string
          description: Base64 エンコードされた平文
      required:
      - Plain
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: APIキーとシークレットをご利用ください
x-refined-from:
- security-encryption-api.yaml
- sakura-internet-security-encryption-openapi.yml