全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网

PCDN API鉴权规则

更新时间:2017-08-18 14:03:48

当子账号通过 PCDN OpenAPI 对主账号的 PCDN 资源进行访问时,PCDN 后台向 RAM 进行权限检查,以确保资源拥有者的确将相关资源的相关权限授予了调用者。

每个不同的 PCDN OpenAPI 会根据涉及到的资源以及 OpenAPI 的语义来确定需要检查哪些资源的权限。具体地,每个 OpenAPI 的鉴权规则见下表。

API 鉴权规则
GetConsumerStatus acs:pcdn:*:${resource-owner-id}:*
GetCurrentMode acs:pcdn:*:${resource-owner-id}:*
AddConsumer acs:pcdn:*:${resource-owner-id}:*
GetDomains acs:pcdn:*:${resource-owner-id}:domain/*
GetDomainCount acs:pcdn:*:${resource-owner-id}:domain/*
GetBandwidthData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetTrafficData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetAccessData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetFluencyData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetFirstFrameDelayData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetCoverRateData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetBalanceBandwidthData acs:pcdn:*:${resource-owner-id}:fee/${fee-id}
GetBalanceTrafficData acs:pcdn:*:${resource-owner-id}:fee/${fee-id}
GetShareRateData acs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetTrafficByRegion acs:pcdn:*:${resource-owner-id}:*
GetClientsRatio acs:pcdn:*:${resource-owner-id}:*
GetExpenseSummary acs:pcdn:*:${resource-owner-id}:*
GetFeeHistory acs:pcdn:*:${resource-owner-id}:*
GetControlRules acs:pcdn:*:${resource-owner-id}:rule/*
AddPcdnControlRule acs:pcdn:*:${resource-owner-id}:rule/*
EnablePcdnControlRule acs:pcdn:*:${resource-owner-id}:rule/${rule-id}
DisablePcdnControlRule acs:pcdn:*:${resource-owner-id}:rule/${rule-id}
EditPcdnControlRule acs:pcdn:*:${resource-owner-id}:rule/${rule-id}
DeletePcdnControlRule acs:pcdn:*:${resource-owner-id}:rule/${rule-id}
GetControlruleDetail acs:pcdn:*:${resource-owner-id}:rule/${rule-id}
GetTokenList acs:pcdn:*:${resource-owner-id}:token/*
GetAllRegions acs:pcdn:*:${resource-owner-id}:*
GetAllIsp acs:pcdn:*:${resource-owner-id}:*
GetAllPlatformTypes acs:pcdn:*:${resource-owner-id}:*
GetAllMarkets acs:pcdn:*:${resource-owner-id}:*
GetAllAppVersions acs:pcdn:*:${resource-owner-id}:*
GetLogsList acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
本文导读目录