Show mCICs¶
Summary¶
Show contract informations of mCIC.
Type¶
- Get
Target object of API¶
- mCIC
Synchronous/Asynchronous¶
- Synchronous
Request¶
HTTP Request Method¶
- GET
HTTP Request Path¶
{api_endpoint}/v1.0/ecc/mCICs/{mcic_id}
HTTP Request Header¶
Content-Type: application/json
Accept: application/json
X-Auth-Token: <token_id>
HTTP Request Body¶
- none
Parameters¶
name | style | format | description | required/optional | default value | action for invalid parameter | response code for invalid parameter |
---|---|---|---|---|---|---|---|
token_id | Header | authentication token string(varchar) | keystone authentication token | required | Terminate | 401 | |
mcic_id | URL | String(15) | It identify mCIC uniquely | required | Terminate | 404 |
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
- skip auto insert field such as "X-Compute-Request-Id" and "Content-Length", "Date"
Response Body¶
Format¶
/// If service_type is "NGC-EC", this format is returned.
{
"mcic_id": "<mcic id>",
"mcic_status": "<mcic status>",
"mcic_name": "<friendly name>",
"tenant_id": "<tenant id>",
"tenant_name": " ",
"service_id": "<service id>",
"service_type": "NGC-EC",
"ngc": {
"dc_tag": "<dc tag>",
"dc_name": "<dc name>",
},
"ec": {
"dc_tag": "<dc tag>",
"dc_name": "<dc name>",
},
"timezone": "UTC"
}
/// If service_type is "NGC-colo", this format is returned.
{
"mcic_id": "<mcic id>",
"mcic_status": "<mcic status>",
"mcic_name": "<mcic name>",
"tenant_id": "<tenant id>",
"tenant_name": "<tenant name>",
"service_type": "NGC-colo",
"ngc": {
"dc_tag": "<dc tag>",
"dc_name": "<dc name>",
},
"colo": {
"dc_tag": "<dc tag>",
"dc_name": "<dc name>",
"a_system": {
"rack_id": "<rack id>"
},
"b_system": {
"rack_id": "<rack id>"
}
}
"timezone": "UTC"
}
Parameters¶
item | format | description | |
mcic_id | String | It identify mCIC uniquely. | |
mcic_status | String | Status of mCIC. active/inactive are displayed. | |
mcic_name | String | mcic friendly name | |
tenant_id | String | It identify user tenant(project) uniquely. | |
tenant_name | String | Nothing is displayed. | |
service_id | String | ID of a service which you have in the Enterprise Cloud 1.0 and to which you would like to create a mCIC from your tenant in Smart Data Platform. | |
service_type | String | It show connection service type. NGC-EC/NGC-colo are displayed. | |
ngc | Object | This parameter is object item. | |
dc_tag | String | It identify Data-center of Smart Data Platform uniquely. | |
dc_name | String | Data-center name of Smart Data Platform | |
colo | Object | This parameter is object item. When service type is selected NGC-colo, this object is displayed. | |
dc_tag | String | It identify Data-center of Colocation service uniquely. | |
dc_name | String | Data-center name of Colocation service. | |
a_system | Object | This parameter is object item. | |
rack_id | String | It identifies your rack ID. | |
b_system | String | Object | This parameter is object item. |
rack_id | String | It identifies your rack ID. | |
ec | Object | This parameter is object item. When service type is selected NGC-EC, this object is displayed. | |
dc_tag | String | It identify Data-center of Enterprise Cloud 1.0 uniquely. | |
dc_name | String | Data-center name of Enterprise Cloud 1.0. | |
timezone | String | This parameter is fixed UTC. |
Sample Request and Response¶
Sample API request¶
Request URI¶
http://{api_endpoint}/v1.0/ecc/mCICs/CLC-JP-00000001
http://{api_endpoint}/v1.0/ecc/mCICs/CIC-JP-A0000001
Request Header¶
Content-Type:
Accept: application/json
X-Auth-Token: 69105c889f824efdafb56af224208ad4
Request Body¶
- none
Sample API response¶
Response Header¶
HTTP/1.1 200 OK
<response_code>: see "HTTP Responses" section
<message>: message based on the response code
- skip auto insert field such as "X-Compute-Request-Id" and "Content-Length", "Date"
Response Body¶
/// If service_type is "NGC-EC", this format is returned.
{
"mcic_id": "CLC-JP-00000001",
"mcic_status": "active",
"mcic_name": "mCIC friendly name",
"tenant_id": "28606dde52cd465eaa566aa42981dc70",
"tenant_name": " ",
"service_id": "SID-JP-00022828",
"service_type": "NGC-EC",
"ngc": {
"dc_tag": "YKH1.ngc",
"dc_name": "Yokohama#1[NGC JPN]",
},
"ec": {
"dc_tag": "YKH1",
"dc_name": "Yokohama#1[ECL1.0 JPN]",
},
"timezone": "UTC"
}
/// If service_type is "NGC-colo", this format is returned.
{
"mcic_id": "CIC-JP-A0000001",
"mcic_status": "active",
"mcic_name": "mCIC friendly name"
"tenant_id": "28606dde52cd465eaa566aa42981dc70",
"tenant_name": " ",
"service_type": "NGC-colo"
"ngc": {
"dc_tag": "YKH1.ngc",
"dc_name": "Yokohama#1[NGC JPN]",
},
"colo": {
"dc_tag": "YKH1.colo",
"dc_name": "Yokohama#1[Colo JPN]",
"a_system": {
"rack_id": "1A0509キ"
},
"b_system": {
"rack_id": "2B0512"
}
}
"timezone": "UTC"
}
Example error message¶
HTTP request¶
GET /v1.0/ecc/mCICs/CLC-JP-00000000 HTTP/1.1
User-Agent: curl/7.37.1
Host: 192.168.150.71:9001
Content_type:application/json
Accept:application/json
X-Auth-Token:4e54395a12b740d585d74190ba4eb14b
HTTP Response¶
HTTP/1.1 404 HTTP 404: Not Found
Server: nginx/1.8.0
Date: Mon, 14 Sep 2015 09:26:19 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 56
Connection: keep-alive
{
"cause": "Could not found mCIC. CLC-JP-00000000"
}