To send a Resource Management API request, you must send an HTTPS GET request to the Resource Management endpoint. You must add the request parameters that correspond to the API operation being called. After you call the API operation, the system returns a response. The request and response are both encoded in UTF-8.

Request structure

Resource Management API operations use the RPC protocol. You can call Resource Management API operations by sending HTTPS GET requests.

The request syntax is as follows:
  • Endpoint
    • The endpoint of the API for Resource Directory and Resource Group is
    • For more information about the endpoint of the Tag API, see Endpoints.
    • You can call the DescribeRegions operation to obtain the endpoint of the Resource Sharing API.
  • Action

    The name of the operation being performed. For example, to create a resource account, you must set the Action parameter to CreateResourceAccount.

  • Parameters

    The request parameters for the operation. Separate multiple parameters with ampersands (&).

    Request parameters include both common parameters and operation-specific parameters. Common parameters include the API version and authentication information. For more information, see Common parameters.

The following example demonstrates how to call the CreateResourceAccount operation to create a resource account:
Note The following code has been formatted to ease reading.