Disable project

Description

Disables the specified project.

All resources in the project must be deleted before performing this operation.

After a project is disabled, even if it is enabled again later, its resources cannot be restored.

Note:
  • If a project the user does not belong to is specified, that operation results in an error.
  • When the system administrator uses this API, an error will occur if a value different from the project ID is specified in the header.

Request

Header

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 disabled, and retrieve a token.

When the system administrator uses this API, the scope specified for the token is ignored.

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

Method

DELETE

Path

/projects/projId

Query

Argument name Description
availability_zone Specifies the name of the availability zone where the project folder should be deleted.

If omitted, project folders will be deleted from all availability zones.

Body

n/a

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>