开发者社区> 问答> 正文

PCDN API鉴权规则有什么


当子账号通过 PCDN OpenAPI 对主账号的 PCDN 资源进行访问时,PCDN 后台向 RAM 进行权限检查,以确保资源拥有者的确将相关资源的相关权限授予了调用者。
每个不同的 PCDN OpenAPI 会根据涉及到的资源以及 OpenAPI 的语义来确定需要检查哪些资源的权限。具体地,每个 OpenAPI 的鉴权规则见下表。

API鉴权规则
GetConsumerStatusacs:pcdn:*:${resource-owner-id}:*
GetCurrentModeacs:pcdn:*:${resource-owner-id}:*
AddConsumeracs:pcdn:*:${resource-owner-id}:*
GetDomainsacs:pcdn:*:${resource-owner-id}:domain/*
GetDomainCountacs:pcdn:*:${resource-owner-id}:domain/*
GetBandwidthDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetTrafficDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetAccessDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetFluencyDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetFirstFrameDelayDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetCoverRateDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetBalanceBandwidthDataacs:pcdn:*:${resource-owner-id}:fee/${fee-id}
GetBalanceTrafficDataacs:pcdn:*:${resource-owner-id}:fee/${fee-id}
GetShareRateDataacs:pcdn:*:${resource-owner-id}:domain/* acs:pcdn:*:${resource-owner-id}:domain/${domain-id}
GetTrafficByRegionacs:pcdn:*:${resource-owner-id}:*
GetClientsRatioacs:pcdn:*:${resource-owner-id}:*
GetExpenseSummaryacs:pcdn:*:${resource-owner-id}:*
GetFeeHistoryacs:pcdn:*:${resource-owner-id}:*
GetControlRulesacs:pcdn:*:${resource-owner-id}:rule/*
AddPcdnControlRuleacs:pcdn:*:${resource-owner-id}:rule/*
EnablePcdnControlRuleacs:pcdn:*:${resource-owner-id}:rule/${rule-id}
DisablePcdnControlRuleacs:pcdn:*:${resource-owner-id}:rule/${rule-id}
EditPcdnControlRuleacs:pcdn:*:${resource-owner-id}:rule/${rule-id}
DeletePcdnControlRuleacs:pcdn:*:${resource-owner-id}:rule/${rule-id}
GetControlruleDetailacs:pcdn:*:${resource-owner-id}:rule/${rule-id}
GetTokenListacs:pcdn:*:${resource-owner-id}:token/*
[tr=rgb(239, 251, 255)][td]GetAllRegions acs:pcdn:*:${resource-owner-id}:* GetAllIspacs:pcdn:*:${resource-owner-id}:* GetAllPlatformTypesacs:pcdn:*:${resource-owner-id}:* GetAllMarketsacs:pcdn:*:${resource-owner-id}:* GetAllAppVersionsacs:pcdn:*:${resource-owner-id}:* GetLogsListacs:pcdn:*:${resource-owner-id}:domain/${domain-id}

展开
收起
云栖大讲堂 2017-10-30 09:32:04 2506 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载