开发者社区 > 云原生 > 正文

调用ascm DeleteUserAccessKey,出错AccessKey不合法

我在阿里云的官网上运行它的代码,DeleteUserAccessKey,如下

{
  "AccessKeyId": "abcdabcdN52Iabcd",
  "AccessKeySecret": "abcd273oReabcdabcd2abcd",
  "Action": "DeleteUserAccessKey",
  "Product": "ascm",
  "RegionId": "cn-hk-xxxx-d01",
  "Version": "2019-05-10",
  "isFormat": false
}

出了下面的错,说Accesskey不合法,但是我提供的accesskey都是正确的呀。

{
    "code": "200",
    "data": {
      "errorKey": "ascm.manage.InvalidParameter.AccessKey",
      "eagleEyeTraceId": "asdsfdgsdfgdhdfghdfghdgfh",
      "asapiSuccess": false,
      "product": "ascm",
      "code": "427",
      "cost": 58,
      "errorType": "System",
      "dynamicMessages": [
        "Operate UserAccessKey error"
      ],
      "errorMessage": "AccessKey不合法",
      "errorCode": "ascm.manage.InvalidParameter.AccessKey",
      "asapiVersion": "v4",
      "message": "AccessKey不合法",
      "successResponse": false,
      "serverRole": "unimanager-base.IdentityService#",
      "responseVersion": "v1",
      "success": false,
      "errorTitle": "AccessKey不合法",
      "extraMessage": "Operate UserAccessKey error",
      "domain": "ascm-auth.ali.cloud.cn.xxxx",
      "diagnose": "",
      "api": "ascm:DeleteUserAccessKey:2019-05-10",
      "key": "ascm.manage.InvalidParameter.AccessKey",
      "asapiErrorCode": "ascm.manage.InvalidParameter.AccessKey",
      "asapiErrorMessage": "AccessKey不合法"
    },
    "cost": 247,
    "apiCost": 242,
    "eagleEyeTraceId": "asdsfdgsdfgdhdfghdfghdgfh",
    "ascmCode": false,
    "successResponse": true
  }

展开
收起
游客hqwuolqcmkpfs 2024-11-27 11:17:29 16 0
1 条回答
写回答
取消 提交回答
  • 知道原因了。
    请求中少一个参数:
    "deleteAccesskey": "oldkeyabcdefg"

    2024-11-28 14:18:57
    赞同 23 展开评论 打赏
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载