Enable project

Description

Enables the specified project.

This makes it possible to operate the resources of the virtual server for SAP.

CAUTION:

  • Do not create and delete files concurrently for the same project.
  • When a request is made to enable a project that is already enabled, it will complete successfully.

Request

Header

Content-Type: application/x-www-form-urlencoded

Accept: application/xml

X-Auth-Token: Keystone token (*1)

X-VA-Project-Id: ID of the project that owns the resource (*2)

X-VA-Domain-Id: ID of the domain that owns the resource (*2)

*1: Specify the scope of the project to be enabled, and retrieve a token.

*3: Mandatory when this API is executed by the system administrator. ignored when executed by other users.

Method

POST

Path

/projects

Query

n/a

Body

Argument name Description
project_id Specifies the project ID retrieved from Keystone.

Do not include symbols such as hyphens (-).

Note that the ID specified here is not case-sensitive (the name of the folder will be converted to lowercase).

If a project the user does not belong to is specified, that operation results in an error.

If you are a system administrator, an error will occur if you specify a value different from the project ID.

availability_zone Specifies the name of the availability zone where the project folder should be created.

If omitted, project folders will be created in all availability zones.

Response

Status code

202 Accepted

Body

Returns information on tasks executed by each availability zone.

However, <resource id="resourceId"/> is not displayed.


       <tasks>
       <task>
       <id>taskId</id>
       <status>waiting</status>
       <progress>0</progress>
       <starttime>startTime</starttime>
       <AvailabilityZone>availabilityZoneName</AvailabilityZone>
       </task>
       <task>
       <id>taskId</id>
             ...
             </task>
             </tasks>