Updated on 2026-11-06 GMT+08:00

Agency Overview

What Is an Agency?

AI DataLake needs to work with other cloud services. You need to create agencies to grant AI DataLake the required permissions to access other cloud service resources on your behalf. These agencies enable AI DataLake to perform tasks such as data analysis, logging, and monitoring.

AI DataLake Agency Application Scenarios

Table 1 describes the scenarios where an agency must be configured for AI DataLake.

Table 1 AI DataLake agency application scenarios

Scenario

Description

Related Link

Using AI DataLake for the first time

When using AI DataLake for the first time, you must authorize the service to access other cloud resources on your behalf. This foundational step grants the necessary permissions to create workspaces and develop jobs.

Enabling AI DataLake and Granting Permissions

Configuring an AuraJobV2 Agency

When creating an AuraJobV2 session through an API, you must use the agency_name field to configure an agency to delegate permissions to the session. The system automatically converts these agency-assigned permissions into temporary credentials (AK, SK, and SecurityToken) and updates them to the job during runtime. You can use these credentials in the Aura session to access the corresponding cloud service.

Configuring RayCluster and RayJob endpoint agencies

When creating a RayCluster or RayJob endpoint, you must configure an agency to delegate permissions to the endpoint. At runtime, AI DataLake automatically converts these agency-assigned permissions into temporary security credentials and updates them into the Ray cluster. You can then use agency credentials in the Ray cluster to access the required services.

Configuring SparkSQL and SparkJob endpoint agencies

  • Storage agency: Authorizes AI DataLake to upload logs and temporary data to OBS buckets.
  • Job agency: Authorizes AI DataLake Spark jobs to access LakeFormation metadata.

Configuring a FlinkJob endpoint agency

  • Storage agency: Authorizes AI DataLake to read and write Flink job data (such as logs, checkpoints, savepoints, and temporary data) in OBS buckets.
  • Job agency: Authorizes AI DataLake to access LakeFormation metadata or DEW for sensitive data encryption management.
    NOTE:

    If no agency is configured for a Flink job, the agency configured for the Flink endpoint is used. If an agency is configured for the Flink job, that job agency takes precedence.