Calling APIs Using an Agency in Non-configuration Mode
After a delegating party creates an agency to delegate another account to manage its resources, the delegated party can add --cli-agency-domain-id/--cli-agency-domain-name, --cli-agency-name, and --cli-source-profile to a command to call cloud service APIs using an agency in non-configuration mode, and manage resources of the delegating party.
cloud VPC ListAddressGroup/v3 --cli-region="{region}" --project_id="2cc60****************caefa5019ef" --cli-agency-domain-id=13534326******************5cf67b --cli-agency-name=****** --cli-source-profile=test
{
"request_id": "29ec21****************6d6b4cdd82",
"address_groups": [],
"page_info": {
"current_count": 0
}
}
Among the preceding parameters, use --cli-agency-domain-id/--cli-agency-domain-name and --cli-agency-name at the same time. Use --cli-source-profile to specify the profile that stores the authentication information of the delegated party. The value of --cli-source-profile cannot be the current profile.
Feedback
Was this page helpful?
Provide feedbackThank 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