Getting information about a specific data center

Ops Center Common Services REST API Reference Guide

Version
10.9.x
File Size
533 KB
Audience
anonymous
Part Number
MK-99OPS003-06
The following request gets information about a specific data center.

Execution permission

None.

Request line

GET base-URL/app/v1/datacenters/object-ID-of-the-data-center

Request message

Object ID of the data center

Specify the value of id acquired by using the request for getting information about a list of data centers.

Attribute

Type

Description

id

string

(Required) Object ID of the data center

Query parameters
None.
Body
None.

Response message

Body
{
    "id": "8a11a1bf6d4378d9016d6723704e000a",
    "name": "Tokyo Data Center",
    "description": "",
    "attributes": {
        "city": "Hachioji (Tokyo, Japan)",
        "latitude": "35.6577",
        "longitude": "139.3261"
    }
}

Attribute

Type

Description

id

string

Object ID of the data center

name

string

Data center name

description

string

Description

attributes

object

Information about the attributes of the data center

Information defined by the user when registering or updating the data center is returned.

Coding example

curl -v -X GET -s "https://example.com:443/portal/app/v1/datacenters/8a11a1bf6d4378d9016d6723704e000a" -H "Authorization:Bearer eyJhbxxx"
Tip: Because this request uses SSL communication, you must either run the curl command with the root certificate of the Common Services server certificate specified for the --cacert option, or run the command with the -k option specified. (The -k option runs the command by ignoring SSL errors.)