Updated on 2023-07-05 GMT+08:00

Getting Started

This section describes how to create an enterprise project by invoking the API of EPS.

The validity period of a token obtained from IAM is 24 hours. If you want to use a token for authentication, cache it to avoid frequently calling the IAM API.

Involved APIs

To use token authentication, you need to obtain a token and add X-Auth-Token to the request header of API calls.

  • API for obtaining tokens from IAM
  • API for creating an enterprise project

Procedure

  1. Obtain the token by following instructions in Authentication.
  2. Send POST https://EPS Endpoint/v1.0/enterprise-projects.

    Add Content-Type and X-Auth-Token to the request header.

    Specify the following parameters in the request body:
    {
       "name":"enterprise_project1",
       "description": "description"
    }

    If the request is responded, enterprise_project is returned.

    If the request fails, an error code and error information are returned. For details, see Error Code Description.

    For details about the elements and return values of response messages, see Creating an Enterprise Project.