Help Center/ Elastic Cloud Server/ User Guide/ Elastic Network Interfaces/ Creating an Agency to Grant ECS Access to COC
Updated on 2025-07-25 GMT+08:00

Creating an Agency to Grant ECS Access to COC

Scenarios

COC's job management is required for batch VPC change. To use job management, you need to create an agency to grant ECS access and related permissions to COC.

If you need to batch change VPCs of multiple ECSs, you can refer to this section to create an agency first.

Procedure

  1. Log in to the IAM console.
  2. On the IAM console, choose Agencies from the left navigation pane and click Create Agency on the displayed page.
  3. Configure agency parameters.
    • Agency Name: Enter an agency name.
    • Agency Type: Select Cloud service.
    • Cloud Service: Select the cloud service to be authorized, for example, CloudOperationsCenter.
    • Validity Period: Set this parameter based on service requirements.
    • Description (Optional): Enter a description.
    Figure 1 Creating an agency
  4. Click OK.
  5. In the displayed dialog box, click Authorize.
  6. Select the permissions to be granted to the agency.

    If no policy is available in the list, click Create Policy in the upper right corner of the list to create one. For details, see Creating a Custom Policy.

    A custom policy must contain the following content:
    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "ecs:cloudServers:changeVpc",
                    "ecs:cloudServers:list"
                ]
            }
        ]
    }
  7. Click Next and specify the authorization scope.
  8. Click OK. The agency is created.