阅读831 返回首页    go 英雄联盟


DescribeKey__API 参考_密钥管理服务-阿里云

查看密钥详情(DescribeKey)

返回指定keyid的相关信息

  • 请求格式
  1. KeyId="string"
  • 请求参数

    • KeyId
      • 含义 : key的全局唯一标识符
      • 类型 : String
      • 是否必须 : 是
  • 请求示例

  1. https://kms.cn-hangzhou.aliyuncs.com/?Action=DescribeKey
  2. &KeyId=<your-key-id>
  3. &<其他公共参数>
  • 返回格式
  1. {
  2. "KeyMetadata": {
  3. "CreationDate": "string",
  4. "Description": "string",
  5. "KeyId": "string",
  6. "KeyState": "string",
  7. "KeyUsage": "string",
  8. "DeleteDate": "string",
  9. "Creator": "string"
  10. },
  11. "RequestId":"string"
  12. }
  • 返回参数

    • CreationDate
      • 含义 : 创建密钥时的日期和时间
      • 类型 : String
    • KeyId
      • 含义 : key的全局唯一标识符
      • 类型 : String
      • KeyState
      • 含义 : key的状态
      • 类型 : String
    • KeyUsage
      • 含义 : key的用途
      • 类型 : String
    • Description
      • 含义 : key的描述
      • 类型 : String
    • DeleteDate
      • 含义 : Key预计被删除的时间(UTC时间)。当该值为空时,表示Key不会被删除。
      • 类型 : String
    • Creator
      • 含义 : Key的创建者主账户ID
      • 类型 : String
    • RequestId
      • 含义 : 随机的访问Id
      • 类型 : String
  • 返回示例

  1. //json response
  2. {
  3. "KeyMetadata": {
  4. "CreationDate": "2016-03-25T10:42:40Z",
  5. "Description": "test",
  6. "KeyId": "*******************",
  7. "KeyState": "Enabled",
  8. "KeyUsage": "ENCRYPT/DECRYPT",
  9. "DeleteDate": "",
  10. "Creator": "*******************"
  11. },
  12. "RequestId": "3455b9b4-95c1-419d-b310-db6a53b09a39"
  13. }
  14. //xml response
  15. <KMS>
  16. <KeyMetadata>
  17. <CreationDate>2016-03-25T10:40:47Z</CreationDate>
  18. <Description>test</Description>
  19. <KeyId>*******************</KeyId>
  20. <KeyState>Enabled</KeyState>
  21. <KeyUsage>ENCRYPT/DECRYPT</KeyUsage>
  22. <DeleteDate></DeleteDate>
  23. <Creator>*******************</Creator>
  24. </KeyMetadata>
  25. <RequestId>6cb4bf6b-d9c9-4660-af5f-2328378e7257</RequestId>
  26. </KMS>

最后更新:2016-11-29 15:53:16

  上一篇:go ListKeys__API 参考_密钥管理服务-阿里云
  下一篇:go EnableKey__API 参考_密钥管理服务-阿里云