• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Python
  6. KMS

KMS

Interface

Method

API

Key Operations

create_key(**kwargs)

POST /v1.0/{project_id}/kms/create-key

keys(**query)

POST /v1.0/{project_id}/kms/list-keys

describe_key(key, **kwargs)

POST /v1.0/{project_id}/kms/describe-key

disable_key(key, **params)

POST /v1.0/{project_id}/kms/disable-key

enable_key(key, **params)

POST /v1.0/{project_id}/kms/enable-key

schedule_deletion_key(key, pending_days, **params)

POST /v1.0/{project_id}/kms/schedule-key-deletion

cancel_deletion_key(key, **params)

POST /v1.0/{project_id}/kms/cancel-key-deletion

random Operations

gen_random(**params)

POST /v1.0/{project_id}/kms/gen-random

DataKey Operations

create_datakey(key, **params)

POST /v1.0/{project_id}/kms/create-datakey

create_datakey_wo_plain(key, **params)

POST /v1.0/{project_id}/kms/create-datakey-without-plaintext

encrypt_datakey(datakey, **params)

POST /v1.0/{project_id}/kms/encrypt-datakey

decrypt_datakey(datakey, **params)

POST /v1.0/{project_id}/kms/decrypt-datakey

InstanceNumber Operations

get_instance_number()

GET /v1.0/{project_id}/kms/user-instances

Quota Operations

get_quota()

GET /v1.0/{project_id}/kms/user-quotas