Approve aws_connection

Summary

Approve/Disapprove aws_connection resource. You can approve aws_connection after accepting a virtual interface request in AWS management console. You can disapprove aws_connection which is not approved yet. (You cannot delete it.)

Type

  • PUT

Target object of API

  • aws_connection

Synchronous/Asynchronous

  • Asynchronous

Request

HTTP Request Method

  • PUT

HTTP Request Path

{api_endpoint}/v2.0/aws_connections/{id}/action

HTTP Request Header

Content-Type: application/json
Accept: application/json
X-Auth-Token: <token_id>

HTTP Request Body

Format

{
  "action": "<action>"
}

Parameters

Input Parameters
name style format description required/optional default value action for invalid parameter response code for invalid parameter
token_id Header authentication token string(32) keystone authentication token required   Terminate 401
id URL String(UUID) It identifies aws_connection resource uniquely. required   Terminate 404
action Body String(approve,disapprove) Action type. required   Terminate 400

Response

Response Header

Format

HTTP/1.1 <response_code> <message>       (ex. 200 OK)
  • <response_code>: see “HTTP Responses” section
  • <message>: message based on the response code

Response Code

Response Codes
response code condition
200 OK
400 Bad request
401 Unauthorized
404 Not found
409 Conflicted
500 Internal server error

Response Body

Format

There is no body content for the response of a successful PUT operation.

Parameters

There is no body content for the response of a successful PUT operation.

Sample Request and Response

Sample API request

Request URI

https://{api_endpoint}/v2.0/aws_connections/{id}/action

Request Header

Content-Type: application/json
Accept: application/json
X-Auth-Token: 69105c889f824efdafb56af224208ad4

Request Body

{
  "action": "approve"
}

Sample API response

Response Header

HTTP/1.1 200 OK

Response Body

There is no body content for the response of a successful PUT operation.

Example error message

HTTP request

PUT /v2.0/aws_connections/{id} HTTP/1.1
User-Agent: curl/7.37.1
Host: 10.1.131.140
Content_type:application/json
Accept:application/json
X-Auth-Token:4e54395a12b740d585d74190ba4eb14b
Content-Length: 73
Content-Type: application/x-www-form-urlencoded

HTTP Response

HTTP/1.1 400 Bad Request
Server: nginx/1.8.0
Date: Mon, 28 Sep 2015 10:32:56 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 39
Connection: keep-alive

{
    "cause": "Invalid request body"
}