Skip to content

刷新 CDN 提示您没有权限执行该操作 #28

@eallion

Description

@eallion

通过 API 刷新 CDN SubmitRefreshTask 命令不可用,主账号和子账号都出错, 在 API Explorer、GitHub Actions 和服务器上,都不能用,权限设置没有问题,错误代码 AccessDenied.WhitelistUnauthorized 在文档中也没有查到。

提示内容如下:

ve cdn SubmitRefreshTask --body '{"Delete":true,"Prefix":true,"Type":"dir","Urls":"https://www.domain.com/"}'
{
    "ResponseMetadata": {
        "Action": "SubmitRefreshTask",
        "Error": {
            "Code": "AccessDenied.WhitelistUnauthorized",
            "Message": "您没有权限执行该操作。"
        },
        "Region": "cn-beijing",
        "RequestId": "20240725130215DC7[99](https://github.com/eallion/eallion.com/actions/runs/10088371675/job/27894037212#step:9:100)9EBEDD026807F3E",
        "Service": "cdn",
        "Version": "2021-03-01"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions