存取控制(RAM)是阿里雲提供的系統管理使用者身份與資源存取權限的服務。使用 RAM 可以讓您避免與其他使用者共用阿里雲帳號密鑰,並可按需為使用者授予最小許可權。RAM 中使用權限原則描述授權的具體內容。
本文為您介紹 Chat App Message Service 為 RAM 權限原則定義的操作(Action)、資源(Resource)和條件(Condition)。 Chat App Message Service 的 RAM 代碼(RamCode)為 cams ,支援的授權粒度為 RESOURCE 。
權限原則通用結構
權限原則支援 JSON 格式,其通用結構如下:
{
"Version": "1",
"Statement": [
{
"Effect": "<Effect>",
"Action": "<Action>",
"Resource": "<Resource>",
"Condition": {
"<Condition_operator>": {
"<Condition_key>": [
"<Condition_value>"
]
}
}
}
]
} 各欄位含義如下:
Effect:權限原則效果。取值:Allow(允許)、Deny(拒絕)。
Action:授予允許或拒絕許可權的具體操作。具體資訊,請參見操作(Action)。
Resource:受操作影響的具體對象,您可以使用資源 ARN 來描述指定資源。具體資訊,請參見資源(Resource)。
Condition:指授權生效的條件。可選欄位。具體資訊,請參見條件(Condition)。
Condition_operator:條件運算子,不同類型的條件對應不同的條件運算子。具體資訊,請參見權限原則基本元素。
Condition_key:條件關鍵字。
Condition_value:條件關鍵字對應的值。
操作(Action)
下表是Chat App Message Service定義的操作,這些操作可以在 RAM 權限原則語句的Action元素中使用,用來授予執行該操作的許可權。下面對錶中的具體項提供說明:
操作:是指具體的許可權點。
API:是指操作對應的 API 介面。
存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。
資源類型:是指操作中支援授權的資源類型。具體說明如下:
對於必選的資源類型,用前面加 * 表示。
對於不支援資源級授權的操作,用
全部資源表示。
條件關鍵字:是指雲產品自身定義的條件關鍵字。該列不體現適用於任何操作的通用條件關鍵字。
關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。
|
操作 |
API |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
| cams:QueryInstance | QueryInstance | get |
*Instance
|
無 | 無 |
| cams:DeleteFlow | DeleteFlow | get |
*All Resource
|
無 | 無 |
| cams:ChatappPhoneNumberDeregister | ChatappPhoneNumberDeregister | update |
*All Resource
|
無 | 無 |
| cams:CreateChatappMigrationInitiate | CreateChatappMigrationInitiate | create |
*All Resource
|
無 | 無 |
| cams:ListViberServiceMessage | ListViberServiceMessage | list |
*All Resource
|
無 | 無 |
| cams:ReadFlowVersion | ReadFlowVersion | create |
*All Resource
|
無 | 無 |
| cams:IsvGetAppId | IsvGetAppId | get |
*All Resource
|
無 | 無 |
| cams:ListFlow | ListFlow | list |
*All Resource
|
無 | 無 |
| cams:RequestWhatsappConversionApi | RequestWhatsappConversionApi | none |
*All Resource
|
無 | 無 |
| cams:UpdateCommerceSetting | UpdateCommerceSetting | update |
*All Resource
|
無 | 無 |
| cams:ListChatFlowTemplate | ListChatFlowTemplate | create |
*All Resource
|
無 | 無 |
| cams:GetViberPauseTimes | GetViberPauseTimes | get |
*All Resource
|
無 | 無 |
| cams:GetViberByRequestNo | GetViberByRequestNo | list |
*All Resource
|
無 | 無 |
| cams:ListAllGroups | ListAllGroups | list |
*All Resource
|
無 | 無 |
| cams:ListBindDmAccount | ListBindDmAccount | list |
*All Resource
|
無 | 無 |
| cams:GetCommerceSetting | GetCommerceSetting | update |
*All Resource
|
無 | 無 |
| cams:GetConversationalAutomation | GetConversationalAutomation | get |
*All Resource
|
無 | 無 |
| cams:OfflineFlowVersion | OfflineFlowVersion | update |
*All Resource
|
無 | 無 |
| cams:AddMarketingFlow | AddMarketingFlow | create |
*All Resource
|
無 | 無 |
| cams:AddChatappPhoneNumber | AddChatappPhoneNumber | update |
*All Resource
|
無 | 無 |
| cams:GetChatappTemplateDetail | GetChatappTemplateDetail | get |
*All Resource
|
無 | 無 |
| cams:DeleteWhatsappUserName | DeleteWhatsappUserName | delete |
*All Resource
|
無 | 無 |
| cams:GetAuditRequestByTypeUnAudit | GetAuditRequestByTypeUnAudit | list |
*All Resource
|
無 | 無 |
| cams:ChatappPhoneNumberRegister | ChatappPhoneNumberRegister | update |
*All Resource
|
無 | 無 |
| cams:QueryChatappBindWaba | QueryChatappBindWaba | get |
*All Resource
|
無 | 無 |
| cams:QueryChatappPhoneNumbers | QueryChatappPhoneNumbers | list |
*All Resource
|
無 | 無 |
| cams:UpdateConversationalAutomation | UpdateConversationalAutomation | update |
*All Resource
|
無 | 無 |
| cams:GeneratePresignedUrl | GeneratePresignedUrl | create |
*All Resource
|
無 | 無 |
| cams:BindMessengerPage | BindMessengerPage | update |
*All Resource
|
無 | 無 |
| cams:QueryPhoneBusinessProfile | QueryPhoneBusinessProfile | get |
*All Resource
|
無 | 無 |
| cams:CreateFlowVersion | CreateFlowVersion | create |
*All Resource
|
無 | 無 |
| cams:ModifyFlow | ModifyFlow | get |
*All Resource
|
無 | 無 |
| cams:ChatappBindWaba | ChatappBindWaba | update |
*All Resource
|
無 | 無 |
| cams:GetWhatsappUserNameSuggestions | GetWhatsappUserNameSuggestions | get |
*All Resource
|
無 | 無 |
| cams: | WhatsappCall | create |
*All Resource
|
無 | 無 |
| cams:ChangeResourceGroup | ChangeResourceGroup | update |
*All Resource
|
無 | 無 |
| cams:ChatappMigrationVerified | ChatappMigrationVerified | update |
*All Resource
|
無 | 無 |
| cams:ListWhatAppTemplate | ListWhatAppTemplate | list |
*Instance
|
無 | 無 |
| cams:UpdateAuditRequest | UpdateAuditRequest | update |
*All Resource
|
無 | 無 |
| cams:DeleteChatFlow | DeleteChatFlow | delete |
*All Resource
|
無 | 無 |
| cams:GetWhatsappConnectionCatalog | GetWhatsappConnectionCatalog | get |
*All Resource
|
無 | 無 |
| cams:AddAddressRecoverSuspend | AddAddressRecoverSuspend | create |
*All Resource
|
無 | 無 |
| cams:ListInstance | ListInstance | list |
*Instance
|
無 | 無 |
| cams:SyncMessengerSubscriptionToken | SyncMessengerSubscriptionToken | update |
*All Resource
|
無 | 無 |
| cams:UpdateContactById | UpdateContactById | update |
*All Resource
|
無 | 無 |
| cams:GetWhatsappUserName | GetWhatsappUserName | get |
*All Resource
|
無 | 無 |
| cams:SubmitVerifyCodeResult | SubmitVerifyCodeResult | create |
*All Resource
|
無 | 無 |
| cams:DeleteInstance | DeleteInstance | delete |
*Instance
|
無 | 無 |
| cams:GetMigrationVerifyCode | GetMigrationVerifyCode | get |
*All Resource
|
無 | 無 |
| cams:CheckDirectSendMessageSample | CheckDirectSendMessageSample | get |
*All Resource
|
無 | 無 |
| cams:GetChatappPhoneNumberSetting | GetChatappPhoneNumberSetting | get |
*All Resource
|
無 | 無 |
| cams:ListFlowVersion | ListFlowVersion | list |
*All Resource
|
無 | 無 |
| cams:GetChatappVerifyCode | GetChatappVerifyCode | get |
*All Resource
|
無 | 無 |
| cams:ListFlowNodeGroup | ListFlowNodeGroup | list |
*All Resource
|
無 | 無 |
| cams:GetChatappPhoneNumberMetric | GetChatappPhoneNumberMetric | get |
*All Resource
|
無 | 無 |
| cams:ListBindingRelationsForFlowVersion | ListBindingRelationsForFlowVersion | create |
*All Resource
|
無 | 無 |
| cams:ListInstagramPage | ListInstagramPage | list |
*All Resource
|
無 | 無 |
| cams:AddAuditViberOpen | AddAuditViberOpen | create |
*All Resource
|
無 | 無 |
| cams:UpdateChatGroup | UpdateChatGroup | update |
*All Resource
|
無 | 無 |
| cams:UpdateFlowJSONAsset | UpdateFlowJSONAsset | update |
*All Resource
|
無 | 無 |
| cams:GetGroupExist | GetGroupExist | get |
*All Resource
|
無 | 無 |
| cams:UpdateGroupName | UpdateGroupName | update |
*All Resource
|
無 | 無 |
| cams:DeleteChatGroupParticipants | DeleteChatGroupParticipants | delete |
*All Resource
|
無 | 無 |
| cams:FlowBindPhone | FlowBindPhone | update |
*All Resource
|
無 | 無 |
| cams:UpdatePhoneEncryptionPublicKey | UpdatePhoneEncryptionPublicKey | update |
*All Resource
|
無 | 無 |
| cams:ListMessageCampaign | ListMessageCampaign | list |
*All Resource
|
無 | 無 |
| cams:DeletePhoneMessageQrdl | DeletePhoneMessageQrdl | get |
*All Resource
|
無 | 無 |
| cams:UpdateWabaMmlStatus | UpdateWabaMmlStatus | update |
*All Resource
|
無 | 無 |
| cams:MoveContactToGroup | MoveContactToGroup | update |
*All Resource
|
無 | 無 |
| cams:UpdateInstance | UpdateInstance | update |
*Instance
|
無 | 無 |
| cams:CreateFlow | CreateFlow | create |
*All Resource
|
無 | 無 |
| cams:UpdateFlowVersion | UpdateFlowVersion | update |
*All Resource
|
無 | 無 |
| cams:CreatePhoneMessageQrdl | CreatePhoneMessageQrdl | create |
*All Resource
|
無 | 無 |
| cams:ListPhoneMessageQrdl | ListPhoneMessageQrdl | get |
*All Resource
|
無 | 無 |
| cams:DeprecateFlow | DeprecateFlow | get |
*All Resource
|
無 | 無 |
| cams:TriggerChatFlow | TriggerChatFlow | create |
*All Resource
|
無 | 無 |
| cams:UpdatePhoneMessageQrdl | UpdatePhoneMessageQrdl | update |
*All Resource
|
無 | 無 |
| cams:GetWhatsappHealthStatus | GetWhatsappHealthStatus | get |
*All Resource
|
無 | 無 |
| cams:ListFacebookPosts | ListFacebookPosts | list |
*All Resource
|
無 | 無 |
| cams:UpdateChatFlowLogSetting | UpdateChatFlowLogSetting | create |
*All Resource
|
無 | 無 |
| cams:ModifyChatappTemplate | ModifyChatappTemplate | update |
*All Resource
|
無 | 無 |
| cams:CreateChatFlowLogSetting | CreateChatFlowLogSetting | create |
*All Resource
|
無 | 無 |
| cams:ChatappMigrationRegister | ChatappMigrationRegister | update |
*All Resource
|
無 | 無 |
| cams:CreateInstance | CreateInstance | create |
*Instance
|
無 | 無 |
| cams:FlowRebindPhone | FlowRebindPhone | update |
*All Resource
|
無 | 無 |
| cams:GetFbInstagramPages | GetFbInstagramPages | get |
*All Resource
|
無 | 無 |
| cams:GetPhoneNumberVerificationStatus | GetPhoneNumberVerificationStatus | get |
*All Resource
|
無 | 無 |
| cams:OpenChatappService | OpenChatappService | get |
*All Resource
|
無 | 無 |
| cams:AddChatGroupInviteLink | AddChatGroupInviteLink | create |
*All Resource
|
無 | 無 |
| cams:ListProductCatalog | ListProductCatalog | list |
*All Resource
|
無 | 無 |
| cams:DeleteContactsByIds | DeleteContactsByIds | update |
*All Resource
|
無 | 無 |
| cams:DeleteContacts | DeleteContacts | delete |
*All Resource
|
無 | 無 |
| cams:SendChatappMessage | SendChatappMessage | create |
*All Resource
|
無 | 無 |
| cams:ListDmTag | ListDmTag | list |
*All Resource
|
無 | 無 |
| cams:AddCustomAudienceUser | AddCustomAudienceUser | create |
*All Resource
|
無 | 無 |
| cams:UnbindDmAccount | UnbindDmAccount | delete |
*All Resource
|
無 | 無 |
| cams:SendChatappMassMessage | SendChatappMassMessage | create |
*All Resource
|
無 | 無 |
| cams:ListInstagramPosts | ListInstagramPosts | list |
*All Resource
|
無 | 無 |
| cams:GetPhoneEncryptionPublicKey | GetPhoneEncryptionPublicKey | get |
*All Resource
|
無 | 無 |
| cams:ListChatGroup | ListChatGroup | list |
*All Resource
|
無 | 無 |
| cams:DeleteChatGroup | DeleteChatGroup | delete |
*All Resource
|
無 | 無 |
| cams:ArchiveChatappTemplate | ArchiveChatappTemplate | update |
*All Resource
|
無 | 無 |
| cams:AddGroup | AddGroup | create |
*All Resource
|
無 | 無 |
| cams:ModifyPhoneBusinessProfile | ModifyPhoneBusinessProfile | update |
*All Resource
|
無 | 無 |
| cams:DeleteChatGroupInviteLink | DeleteChatGroupInviteLink | delete |
*All Resource
|
無 | 無 |
| cams:SyncMessageCampaign | SyncMessageCampaign | update |
*All Resource
|
無 | 無 |
| cams:GetPermissionByCode | GetPermissionByCode | get |
*All Resource
|
無 | 無 |
| cams:CopyTemplate | CopyTemplate | create |
*All Resource
|
無 | 無 |
| cams:QueryWabaBusinessInfo | QueryWabaBusinessInfo | get |
*All Resource
|
無 | 無 |
| cams:ListDmAccount | ListDmAccount | list |
*All Resource
|
無 | 無 |
| cams:AddContacts | AddContacts | create |
*All Resource
|
無 | 無 |
| cams:CreateChatFlow | CreateChatFlow | create |
*All Resource
|
無 | 無 |
| cams:GetChatFlowTemplate | GetChatFlowTemplate | create |
*All Resource
|
無 | 無 |
| cams:GetPledgeTemplateAddress | GetPledgeTemplateAddress | get |
*All Resource
|
無 | 無 |
| cams:ListChatFlow | ListChatFlow | list |
*All Resource
|
無 | 無 |
| cams:BindDmAccount | BindDmAccount | create |
*All Resource
|
無 | 無 |
| cams:GetChatappOpenStatus | GetChatappOpenStatus | get |
*All Resource
|
無 | 無 |
| cams:DeleteInstagramPage | DeleteInstagramPage | update |
*All Resource
|
無 | 無 |
| cams:CreateChatappTemplate | CreateChatappTemplate | create |
*All Resource
|
無 | 無 |
| cams:PublishFlow | PublishFlow | get |
*All Resource
|
無 | 無 |
| cams:GetFlowJSONAssest | GetFlowJSONAssest | get |
*All Resource
|
無 | 無 |
| cams:ReadChatFlowLogSetting | ReadChatFlowLogSetting | create |
*All Resource
|
無 | 無 |
| cams:ListChatappTemplate | ListChatappTemplate | list |
*All Resource
|
無 | 無 |
| cams:ListMarketingFlow | ListMarketingFlow | list |
*All Resource
|
無 | 無 |
| cams:GetFbMessengerPages | GetFbMessengerPages | get |
*All Resource
|
無 | 無 |
| cams:BindInstagramPage | BindInstagramPage | update |
*All Resource
|
無 | 無 |
| cams:DeleteMarketingFlow | DeleteMarketingFlow | update |
*All Resource
|
無 | 無 |
| cams:OnlineFlowVersion | OnlineFlowVersion | update |
*All Resource
|
無 | 無 |
| cams:ListChatappMessage | ListChatappMessage | list |
*All Resource
|
無 | 無 |
| cams:CreateWhatsappConversionApi | CreateWhatsappConversionApi | create |
*All Resource
|
無 | 無 |
| cams:UpdateAccountWebhook | UpdateAccountWebhook | update |
*All Resource
|
無 | 無 |
| cams:CreateMessengerPage | CreateMessengerPage | create |
*All Resource
|
無 | 無 |
| cams:DeleteFlowVersion | DeleteFlowVersion | update |
*All Resource
|
無 | 無 |
| cams:GetFlowPreviewUrl | GetFlowPreviewUrl | get |
*All Resource
|
無 | 無 |
| cams:RemoveContactById | RemoveContactById | update |
*All Resource
|
無 | 無 |
| cams:GetCustomerSite | GetCustomerSite | get |
*All Resource
|
無 | 無 |
| cams: | SyncBusinessAppHistory | get |
*All Resource
|
無 | 無 |
| cams:GetChatFlowMetric | GetChatFlowMetric | get |
*All Resource
|
無 | 無 |
| cams:GetChatappTemplateMetric | GetChatappTemplateMetric | get |
*All Resource
|
無 | 無 |
| cams:ListPageAdAccount | ListPageAdAccount | list |
*All Resource
|
無 | 無 |
| cams: | SyncFlow | update |
*All Resource
|
無 | 無 |
| cams:ChatappSyncPhoneNumber | ChatappSyncPhoneNumber | list |
*All Resource
|
無 | 無 |
| cams:UpdateChatFlow | UpdateChatFlow | update |
*All Resource
|
無 | 無 |
| cams:ListFlowNodePrototypeV2 | ListFlowNodePrototypeV2 | list |
*All Resource
|
無 | 無 |
| cams:DeleteMessengerPage | DeleteMessengerPage | update |
*All Resource
|
無 | 無 |
| cams:UpdatePhoneWebhook | UpdatePhoneWebhook | update |
*All Resource
|
無 | 無 |
| cams:GetPreValidatePhoneId | GetPreValidatePhoneId | get |
*All Resource
|
無 | 無 |
| cams:GetFlow | GetFlow | get |
*All Resource
|
無 | 無 |
| cams:CreateMessageCampaign | CreateMessageCampaign | create |
*All Resource
|
無 | 無 |
| cams:GetChatappUploadAuthorization | GetChatappUploadAuthorization | get |
*All Resource
|
無 | 無 |
| cams:UpdateMarketingFLow | UpdateMarketingFLow | update |
*All Resource
|
無 | 無 |
| cams:PauseMarketingFLow | PauseMarketingFLow | update |
*All Resource
|
無 | 無 |
| cams:UpdateWhatsappUserName | UpdateWhatsappUserName | update |
*All Resource
|
無 | 無 |
| cams:GetAutoGeneratedTemplate | GetAutoGeneratedTemplate | list |
*All Resource
|
無 | 無 |
| cams:GetDownloadExcelList | GetDownloadExcelList | list |
*All Resource
|
無 | 無 |
| cams:EnableWhatsappROIMetric | EnableWhatsappROIMetric | get |
*All Resource
|
無 | 無 |
| cams:ListCustomAudience | ListCustomAudience | list |
*All Resource
|
無 | 無 |
| cams:ListChatGroupParticipants | ListChatGroupParticipants | list |
*All Resource
|
無 | 無 |
| cams:DeleteGroupById | DeleteGroupById | update |
*All Resource
|
無 | 無 |
| cams: | DeleteMessageCampaign | delete |
*All Resource
|
無 | 無 |
| cams:CreateCustomAudience | CreateCustomAudience | create |
*All Resource
|
無 | 無 |
| cams:DeleteChatappTemplate | DeleteChatappTemplate | delete |
*All Resource
|
無 | 無 |
| cams:AddChatGroup | AddChatGroup | create |
*All Resource
|
無 | 無 |
| cams:ListMessengerSubscriptionToken | ListMessengerSubscriptionToken | list |
*All Resource
|
無 | 無 |
| cams:ReadChatFlow | ReadChatFlow | create |
*All Resource
|
無 | 無 |
| cams:CreateChatFlowByImport | CreateChatFlowByImport | create |
*All Resource
|
無 | 無 |
| cams:GetMessageCampaignInsights | GetMessageCampaignInsights | get |
*All Resource
|
無 | 無 |
| cams:ChatappVerifyAndRegister | ChatappVerifyAndRegister | update |
*All Resource
|
無 | 無 |
| cams:ListProduct | ListProduct | list |
*All Resource
|
無 | 無 |
| cams:GetWhatsappConversionApi | GetWhatsappConversionApi | get |
*All Resource
|
無 | 無 |
| cams:FlowUnbindPhone | FlowUnbindPhone | update |
*All Resource
|
無 | 無 |
資源(Resource)
下表是Chat App Message Service定義的資源,這些資源可以在 RAM 權限原則語句的Resource元素中使用,用來授予對該資源執行具體操作的許可權。 其中,資源 ARN 是資源在阿里雲上的唯一標識。具體說明如下:
{#}為變數標識,需要您替換為實際值。例如:{#ramcode}需要您替換為實際的雲端服務RAM代碼。*表示全部。例如:{#resourceType}為*時:表示全部資源。{#regionId}為*時:表示全部地區。{#accountId}為*時:表示全部阿里雲帳號。
資源類型 |
資源 ARN |
| Instance |
|
條件(Condition)
Chat App Message Service未定義產品層級的條件關鍵字。如需查看適用於所有雲產品的通用條件關鍵字,請參見通用條件關鍵字。
相關操作
您可以建立自訂權限原則,並將權限原則授予 RAM 使用者、RAM 使用者組或 RAM 角色。具體操作如下: