文档首页 > > 开发指南> API & SDK 对应关系> Python> KMS

KMS

分享
更新时间: 2019/11/15 GMT+08:00

基于KMS v1.0 API的SDK接口如下,调用方式举例:conn.kms.create_key()

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

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区