# ProvisionController0 Resource

This controller is responsible for obtaining resources from cloud providers based the plan generated by the planner and uploaded by the user

### POST /user/v0.0/switch/provision/execute

Security Roles Allowed
  ADMIN, USER

Request Body
media type | data type
--- | ---
text/xml | execute (XML)

Response Body
media type | data type
--- | ---
text/xml | result (XML)

#### Example

##### Request

    POST /user/v0.0/switch/provision/execute
    Content-Type: text/xml
    Accept: text/xml

    <execute>
      <action>58c2c2f3a8d4b56889878d03</action>
      <user>user</user>
      <pwd>123</pwd>
    </execute>

##### Response

    HTTP/1.1 201 Looks Good
    Content-Type: text/xml

    <result>
      <status>Success</status>
      <info>INFO</info>
      <file level="0" name="planner_output_all">...</file>
    </result>

### POST /user/v0.0/switch/provision/upload

Security Roles Allowed
  ADMIN, USER

Request Body
media type | data type
--- | ---
text/xml | upload (XML)

Response Body
media type | data type
--- | ---
application/json | string (JSON)
application/xml | string (XML)

#### Example

##### Request

    POST /user/v0.0/switch/provision/upload
    Content-Type: text/xml
    Accept: application/json

    <upload>
      <file level="0" name="planner_output_all">...</file>
      <user>...</user>
      <pwd>...</pwd>
    </upload>

##### Response

    HTTP/1.1 201 Looks Good
    Content-Type: application/json

    ...