Querying a Service Agency
Function
This API is used to query the agency authorized to AI DataLake. You can call this API to query the agency authorized to AI DataLake and the specific permissions within the agency. This API is synchronous with no accompanying APIs or specific scenarios.
Calling Method
For details, see Calling APIs.
URI
GET /v2/agencies/{agency_name}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| agency_name | Yes | String | Definition: Agency name. Constraints: Fixed value: ai_datalake_admin_trust. Range: N/A Default Value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition: User token. It is obtained by calling the Obtaining an IAM User Token API. Constraints: N/A Range: Up to 65,534 characters. Only letters, digits, and special characters are allowed. The token format is defined by IAM. For details about the character set, see the IAM documentation. Default Value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| agency_name | String | Definition: Agency name. Range: The value is fixed at ai_datalake_admin_trust. |
| authorized | Boolean | Definition: Whether authorization is granted. If the user's service agency permissions include the required system agency permissions, true is returned. Otherwise, false is returned. Range |
| create_time | String | Definition: Resource creation time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00. Range: N/A |
| agency_policies | Array of V2AgencyPolicy objects | Definition: Agency policy list. |
| Parameter | Type | Description |
|---|---|---|
| policy_name | String | Definition: Name of the permission policy that specifies the permissions to be granted to AI DataLake. Range
|
| display_name | String | Definition: Permission policy name. Range: 0 to 128 characters. Only letters, digits, and special characters are allowed. |
| is_required | Boolean | Definition: Whether agency policy properties are required. Range |
| is_enable | Boolean | Definition: Whether agency policy properties are enabled. If the policy exists and its effect is Allow, the value is true. Range |
| description | String | Definition: Policy description. Range: 0 to 128 characters. Only letters, digits, and special characters are allowed. |
| action_details | Array of ActionDetail objects | Definition: List of action details for the permission policy, describing the permission operations included in the policy. |
| create_time | String | Definition: Resource creation time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00. Range: N/A |
| changed_action_details | Array of ChangedActionDetail objects | Definition: List of action change details when the policy content is inconsistent with the expected content. Only actions that need to be added (present in the code but not in IAM) are displayed. An empty array is returned when the policy content is exactly the same or the policy is completely missing. |
| Parameter | Type | Description |
|---|---|---|
| action | String | Definition: Permission operation content. Range: 0 to 128 characters. Only letters, digits, colons (:), and special characters are allowed. |
| action_description | String | Definition: Description of the permission operation, explaining the specific meaning of the operation. Range: 0 to 1,024 characters. Only letters, digits, and special characters are allowed. |
| Parameter | Type | Description |
|---|---|---|
| action | String | Definition: Permission operation content. Range: 0 to 256 characters. |
| action_description | String | Definition: Description of the permission action. Range: N/A |
| change_type | String | Definition: Change type. added indicates a permission action to be added. Range |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Status code: 408
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 512 characters. |
| solution_msg | String | Definition: Solution. Range: 0 to 4,096 characters. |
Example Requests
Query the authorization status for this service.
GET /v2/agencies/ai_datalake_admin_trust
Example Responses
Status code: 200
{
"agency_name" : "ai_datalake_admin_trust",
"authorized" : true,
"create_time" : "2026-04-09T08:10:33.000+00:00",
"agency_policies" : [ {
"policy_name" : "AI_DATALAKE_AOM_POLICY",
"display_name" : "Application Operations Management (AOM)",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use AOM",
"action_details" : [ {
"action" : "aom:metric:put",
"action_description" : "Report metrics"
}, {
"action" : "aom:alarm:put",
"action_description" : "Report alarms"
} ],
"create_time" : "2026-03-23T08:24:57.602+00:00"
}, {
"policy_name" : "AI_DATALAKE_COMMON_POLICY",
"display_name" : "Common Service",
"is_required" : true,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use basic common services",
"action_details" : [ {
"action" : "iam:agencies:listAgencies",
"action_description" : "List agencies"
}, {
"action" : "iam:roles:getRole",
"action_description" : "Query roles"
}, {
"action" : "iam:roles:listRoles",
"action_description" : "List roles"
}, {
"action" : "iam:permissions:listRolesForAgency",
"action_description" : "Query agency role permissions"
}, {
"action" : "iam:users:getUser",
"action_description" : "Query users"
}, {
"action" : "obs:bucket:ListAllMyBuckets",
"action_description" : "List all buckets"
}, {
"action" : "obs:bucket:ListBucket",
"action_description" : "List buckets"
}, {
"action" : "obs:object:GetObjectVersion",
"action_description" : "Obtain object versions"
}, {
"action" : "obs:object:GetObject",
"action_description" : "Obtain objects"
} ],
"create_time" : "2026-03-10T04:20:24.801+00:00"
}, {
"policy_name" : "AI_DATALAKE_DCS_POLICY",
"display_name" : "Distributed Cache Service",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to connect to Redis using Ray",
"action_details" : [ {
"action" : "dcs:instance:get",
"action_description" : "Obtain DCS instance details"
}, {
"action" : "dcs:instance:getConfiguration",
"action_description" : "Obtain DCS instance configurations"
}, {
"action" : "dcs:ssl:get",
"action_description" : "Obtain SSL certificate information"
}, {
"action" : "dcs:aclaccount:list",
"action_description" : "List ACL accounts"
}, {
"action" : "dcs:instance:list",
"action_description" : "List DCS instances"
}, {
"action" : "dcs:ssl:modify",
"action_description" : "Modify instance SSL configuration"
} ],
"create_time" : "2026-04-14T07:17:52.333+00:00"
}, {
"policy_name" : "AI_DATALAKE_DEW_POLICY",
"display_name" : "Data Encryption Workshop",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to connect to DEW using Ray",
"action_details" : [ {
"action" : "csms:secret:get",
"action_description" : "Obtain key information"
}, {
"action" : "csms:secretVersion:get",
"action_description" : "Obtain key version information"
}, {
"action" : "kms:dek:crypto",
"action_description" : "Encrypt a data key"
}, {
"action" : "kms:dek:decrypt",
"action_description" : "Decrypt a data key"
} ],
"create_time" : "2026-04-15T07:07:44.120+00:00"
}, {
"policy_name" : "AI_DATALAKE_DNS_POLICY",
"display_name" : "DNS Service",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use DNS",
"action_details" : [ {
"action" : "dns:zone:get",
"action_description" : "Query a zone"
}, {
"action" : "dns:zone:create",
"action_description" : "Create a zone"
}, {
"action" : "dns:zone:list",
"action_description" : "List zones"
}, {
"action" : "dns:zone:delete",
"action_description" : "Delete a zone"
}, {
"action" : "dns:recordset:update",
"action_description" : "Update a record set"
}, {
"action" : "dns:recordset:create",
"action_description" : "Create a record set"
}, {
"action" : "dns:recordset:delete",
"action_description" : "Delete a record set"
}, {
"action" : "dns:recordset:list",
"action_description" : "List record sets"
} ],
"create_time" : "2026-03-10T04:20:25.359+00:00"
}, {
"policy_name" : "AI_DATALAKE_LAKEFORMATION_POLICY",
"display_name" : "LakeFormation Service",
"is_required" : true,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use LakeFormation",
"action_details" : [ {
"action" : "lakeformation:accessTenant:grant",
"action_description" : "Grant access permission to a tenant"
}, {
"action" : "lakeformation:access:delete",
"action_description" : "Delete access permissions"
}, {
"action" : "lakeformation:access:create",
"action_description" : "Create access permissions"
}, {
"action" : "lakeformation:access:describe",
"action_description" : "Query access permissions"
}, {
"action" : "lakeformation:table:describe",
"action_description" : "Query table details"
}, {
"action" : "lakeformation:credential:describe",
"action_description" : "Query credential information"
}, {
"action" : "lakeformation:policy:describe",
"action_description" : "Query policy information"
}, {
"action" : "lakeformation:table:drop",
"action_description" : "Delete a table"
}, {
"action" : "lakeformation:table:create",
"action_description" : "Create a table"
}, {
"action" : "lakeformation:policy:create",
"action_description" : "Create a policy"
}, {
"action" : "lakeformation:database:describe",
"action_description" : "Query database details"
}, {
"action" : "lakeformation:table:alter",
"action_description" : "Modify table attributes"
}, {
"action" : "lakeformation:function:describe",
"action_description" : "Query function details."
}, {
"action" : "lakeformation:catalog:describe",
"action_description" : "Query catalog details."
}, {
"action" : "lakeformation:database:create",
"action_description" : "Create a database."
}, {
"action" : "lakeformation:database:drop",
"action_description" : "Delete a database."
}, {
"action" : "lakeformation:function:create",
"action_description" : "Create a function."
}, {
"action" : "lakeformation:function:alter",
"action_description" : "Modify function attributes."
}, {
"action" : "lakeformation:function:drop",
"action_description" : "Delete a function."
}, {
"action" : "lakeformation:policy:drop",
"action_description" : "Delete a policy."
}, {
"action" : "lakeformation:role:describe",
"action_description" : "Query role details."
}, {
"action" : "lakeformation:user:describe",
"action_description" : "Query user details."
}, {
"action" : "lakeformation:transaction:operate",
"action_description" : "Operate transactions."
} ],
"create_time" : "2026-03-10T04:20:24.582+00:00"
}, {
"policy_name" : "AI_DATALAKE_LTS_POLICY",
"display_name" : "Log Tank Service LTS",
"is_required" : true,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use the log function",
"action_details" : [ {
"action" : "lts:groups:get",
"action_description" : "Query a log group"
}, {
"action" : "lts:groups:list",
"action_description" : "List log groups"
}, {
"action" : "lts:groups:create",
"action_description" : "Create a log group"
}, {
"action" : "lts:topics:get",
"action_description" : "Query a log stream"
}, {
"action" : "lts:topics:list",
"action_description" : "List log streams"
}, {
"action" : "lts:topics:create",
"action_description" : "Create a log stream"
} ],
"create_time" : "2026-03-10T04:20:24.243+00:00"
}, {
"policy_name" : "AI_DATALAKE_OBS_POLICY",
"display_name" : "Object Storage Service OBS",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use OBS",
"action_details" : [ {
"action" : "obs:bucket:CreateBucket",
"action_description" : "Create a bucket"
}, {
"action" : "obs:bucket:DeleteBucket",
"action_description" : "Delete a bucket"
}, {
"action" : "obs:bucket:PutLifecycleConfiguration",
"action_description" : "Configure a lifecycle rule"
}, {
"action" : "obs:bucket:ListBucketMultipartUploads",
"action_description" : "List multipart uploads"
}, {
"action" : "obs:bucket:HeadBucket",
"action_description" : "Check whether a bucket exists"
}, {
"action" : "obs:bucket:ListAllMyBuckets",
"action_description" : "List all buckets"
}, {
"action" : "obs:bucket:ListBucket",
"action_description" : "List buckets"
}, {
"action" : "obs:bucket:PutEncryptionConfiguration",
"action_description" : "Configure encryption"
}, {
"action" : "obs:bucket:PutBucketObjectLockConfiguration",
"action_description" : "Configure object lock"
}, {
"action" : "obs:object:PutObject",
"action_description" : "Upload an object"
}, {
"action" : "obs:object:GetObject",
"action_description" : "Obtain objects"
}, {
"action" : "obs:object:DeleteObject",
"action_description" : "Delete objects"
}, {
"action" : "obs:bucket:GetLifecycleConfiguration",
"action_description" : "Obtain the lifecycle configuration"
} ],
"create_time" : "2026-03-10T04:20:25.164+00:00"
}, {
"policy_name" : "AI_DATALAKE_SELF_POLICY",
"display_name" : "Self Service",
"is_required" : true,
"is_enable" : true,
"description" : "Permissions required by the AI DataLake service to use its own service",
"action_details" : [ {
"action" : "DataArtsFabric:workspace:list",
"action_description" : "List workspaces"
}, {
"action" : "DataArtsFabric:endpoint:show",
"action_description" : "View endpoints"
}, {
"action" : "DataArtsFabric:workspace:showImage",
"action_description" : "View images."
}, {
"action" : "DataArtsFabric:workspace:listRoute",
"action_description" : "Query workspace routes"
}, {
"action" : "DataArtsFabric:endpoint:list",
"action_description" : "List endpoints"
}, {
"action" : "DataArtsFabric:job:dropJobInstance",
"action_description" : "Delete a job instance"
}, {
"action" : "DataArtsFabric:job:listJobInstance",
"action_description" : "List job instances"
}, {
"action" : "DataArtsFabric:workspace:showSession",
"action_description" : "View a session"
}, {
"action" : "DataArtsFabric:workspace:listMessagePolicy",
"action_description" : "List message policies"
}, {
"action" : "DataArtsFabric:workspace:executeStatement",
"action_description" : "Execute a statement"
}, {
"action" : "DataArtsFabric:workspace:showStatementResult",
"action_description" : "View statement results"
}, {
"action" : "DataArtsFabric:workspace:deleteSqlSession",
"action_description" : "Delete an SQL session"
}, {
"action" : "DataArtsFabric:workspace:cancelStatement",
"action_description" : "Cancel a statement"
}, {
"action" : "DataArtsFabric:workspace:createSqlSession",
"action_description" : "Create an SQL session"
}, {
"action" : "DataArtsFabric:workspace:listSessionStatementRecords",
"action_description" : "List session statement records"
}, {
"action" : "DataArtsFabric:workspace:listSqlSessions",
"action_description" : "List SQL sessions"
}, {
"action" : "DataArtsFabric:workspace:listStatementRecords",
"action_description" : "List statement records"
}, {
"action" : "DataArtsFabric:workspace:showSqlSession",
"action_description" : "View SQL sessions"
}, {
"action" : "DataArtsFabric:sparkJob:list",
"action_description" : "List Spark jobs"
}, {
"action" : "DataArtsFabric:sparkSql:list",
"action_description" : "List Spark SQL jobs"
}, {
"action" : "DataArtsFabric:federation:show",
"action_description" : "View Ray Federation information."
}, {
"action" : "DataArtsFabric:federation:list",
"action_description" : "Lists the name of each Ray Federation."
} ],
"create_time" : "2026-03-10T04:20:24.426+00:00"
}, {
"policy_name" : "AI_DATALAKE_SWR_POLICY",
"display_name" : "Container Image Service SWR",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use image package registration",
"action_details" : [ {
"action" : "swr:repo:listRepoDomains",
"action_description" : "List image repository organizations"
}, {
"action" : "swr:repo:listRepoTags",
"action_description" : "List image tags"
}, {
"action" : "swr:repo:createRepoDomain",
"action_description" : "Create an image repository"
}, {
"action" : "swr:repo:getRepo",
"action_description" : "Obtain an image repository"
}, {
"action" : "swr:system:createLoginSecret",
"action_description" : "Generate a temporary login command"
}, {
"action" : "swr:repo:download",
"action_description" : "Download an image"
} ],
"create_time" : "2026-03-10T04:20:25.786+00:00"
}, {
"policy_name" : "AI_DATALAKE_VPC_POLICY",
"display_name" : "Virtual Private Cloud (VPC)",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to use VPC",
"action_details" : [ {
"action" : "vpc:peerings:get",
"action_description" : "Query details about a VPC peering connection"
}, {
"action" : "vpc:peerings:create",
"action_description" : "Create a VPC peering connection"
}, {
"action" : "vpc:peerings:accept",
"action_description" : "Accept a VPC peering connection"
}, {
"action" : "vpc:peerings:delete",
"action_description" : "Delete a VPC peering connection"
}, {
"action" : "vpc:peerings:update",
"action_description" : "Update a VPC peering connection"
}, {
"action" : "vpc:routes:delete",
"action_description" : "Delete a VPC route"
}, {
"action" : "vpc:routes:create",
"action_description" : "Create a VPC route"
}, {
"action" : "vpc:routes:list",
"action_description" : "Obtain VPC routes"
}, {
"action" : "vpc:routeTables:get",
"action_description" : "Obtain route table details"
}, {
"action" : "vpc:routeTables:update",
"action_description" : "Update a route table"
}, {
"action" : "vpc:routeTables:create",
"action_description" : "Create a route table"
}, {
"action" : "vpc:routeTables:associate",
"action_description" : "Associate with a route table"
}, {
"action" : "vpc:routeTables:delete",
"action_description" : "Delete a route table"
}, {
"action" : "vpc:routeTables:list",
"action_description" : "Query route tables"
} ],
"create_time" : "2026-03-23T02:59:32.908+00:00"
}, {
"policy_name" : "AI_DATALAKE_VPCEP_POLICY",
"display_name" : "VPC Endpoint VPCEP",
"is_required" : false,
"is_enable" : true,
"description" : "Permissions required by AI DataLake to connect to your network",
"action_details" : [ {
"action" : "vpcep:epservices:get",
"action_description" : "Query a VPC endpoint service"
}, {
"action" : "vpcep:connections:update",
"action_description" : "Update a connection"
}, {
"action" : "vpcep:permissions:update",
"action_description" : "Update permissions"
}, {
"action" : "vpcep:permissions:list",
"action_description" : "List permissions"
}, {
"action" : "vpcep:epserviceDesc:get",
"action_description" : "Query the description of a VPC endpoint service"
}, {
"action" : "vpcep:endpoints:get",
"action_description" : "Query a VPC endpoint"
}, {
"action" : "vpcep:endpoints:delete",
"action_description" : "Delete a VPC endpoint"
}, {
"action" : "vpcep:endpoints:create",
"action_description" : "Create a VPC endpoint"
}, {
"action" : "vpcep:connections:list",
"action_description" : "List connections"
}, {
"action" : "vpcep:endpoints:list",
"action_description" : "List VPC endpoints"
} ],
"create_time" : "2026-03-10T04:20:25.014+00:00"
} ]
} Status code: 400
{
"error_code" : "AIDataLake.00010151",
"error_msg" : "Parameter value is invalid.",
"solution_msg" : "Please input valid parameter value."
} Status code: 401
{
"error_code" : "APIGW.0301",
"error_msg" : "Incorrect IAM authentication information: decrypt token fail.",
"solution_msg" : "Check whether the IAM authentication information is correct."
} Status code: 403
{
"error_code" : "AIDataLake.00010150",
"error_msg" : "The operation is not allowed.",
"solution_msg" : "Check whether the operation is allowed in the current status."
} Status code: 404
{
"error_code" : "AIDataLake.00010009",
"error_msg" : "No resources found.",
"solution_msg" : "Ensure the requested resource exists and the parameters are correct."
} Status code: 408
{
"error_code" : "common.00000408",
"error_msg" : "timeout exception occurred",
"solution_msg" : "Try again later. If the problem persists, contact technical support."
} Status code: 500
{
"error_code" : "AIDataLake.00011001",
"error_msg" : "Internal error.",
"solution_msg" : "Contact technical support or try again later."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
| 400 | Invalid request parameters. |
| 401 | Unauthorized. |
| 403 | Access denied. |
| 404 | Resource not found. |
| 408 | Request timeout. |
| 500 | Internal server error. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot