All Products
Search
Document Center

Resource Access Management:AliyunCSManagedApigRolePolicy

Last Updated:Mar 13, 2026

AliyunCSManagedApigRolePolicy is the authorization policy dedicated to a service role. In most cases, when a service role is created, the policy is attached to the service role. Then, the service role is authorized to access other cloud services. This policy is updated by the relevant Alibaba Cloud service. Do not attach this policy to a RAM identity other than a service role.

Policy details

  • Type: service system policy

  • Creation time: 17:09:02 on August 21, 2025

  • Update time: 07:41:50 on March 13, 2026

  • Current version: v2

Policy content

{
	"Statement": [{
			"Action": [
				"apig:CreateGateway",
				"apig:GetGateway",
				"apig:DeleteGateway",
				"apig:CreateSource",
				"apig:DeleteSource",
				"apig:UpdateServiceSource",
				"apig:ListSources",
				"apig:ListGlobalPolicies",
				"apig:CreateAndAttachPolicy",
				"apig:UpdateAndAttachPolicy",
				"apig:ListGatewayFeatures",
				"apig:UpdateGatewayFeature",
				"apig:ListTagResources",
				"apig:TagResources",
				"apig:UntagResources",
				"apig:ListK8sClusterSources",
				"apig:ListEnvironments",
				"apig:GetEnvironment",
				"apig:ListGateways",
				"apig:CreateHttpApi",
				"apig:DeployHttpApi",
				"apig:ListHttpApis",
				"apig:GetHttpApi",
				"apig:UpdateHttpApi",
				"apig:UndeployHttpApi",
				"apig:DeleteHttpApi",
				"apig:DetachAndDeletePolicy",
				"apig:ListPolicies",
				"apig:GetPolicy",
				"apig:CreateAndAttachPolicy",
				"apig:UpdatePolicy"
			],
			"Resource": "*",
			"Effect": "Allow"
		},
		{
			"Action": "vpc:DescribeVSwitches",
			"Resource": "acs:vpc:*:*:*/*",
			"Effect": "Allow"
		},
		{
			"Action": [
				"log:CloseProductDataCollection",
				"log:OpenProductDataCollection",
				"log:GetProductDataCollection"
			],
			"Resource": [
				"acs:apig:*:*:gateway/*",
				"acs:log:*:*:project/*/logstore/apig_*"
			],
			"Effect": "Allow"
		},
		{
			"Action": "ram:CreateServiceLinkedRole",
			"Resource": "*",
			"Condition": {
				"StringEquals": {
					"ram:ServiceName": [
						"audit.log.aliyuncs.com"
					]
				}
			},
			"Effect": "Allow"
		},
		{
			"Action": "ram:CreateServiceLinkedRole",
			"Resource": "*",
			"Effect": "Allow",
			"Condition": {
				"StringEquals": {
					"ram:ServiceName": "middlewarelens.log.aliyuncs.com"
				}
			}
		},
		{
			"Action": "ram:CreateServiceLinkedRole",
			"Resource": "*",
			"Effect": "Allow",
			"Condition": {
				"StringEquals": {
					"ram:ServiceName": [
						"securitylens.log.aliyuncs.com",
						"ai-lens.log.aliyuncs.com",
						"storagelens.log.aliyuncs.com"
					]
				}
			}
		}
	],
	"Version": "1"
}

References