Updating the registered information for a 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 updates the registered information for a data center.

Execution permission

You must be a system administrator or a security administrator.

Request line

PUT 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
{
    "id": "8a11a1bf6f1c0a95016f8d41c4d7000a",
    "name": "Yokohama",
    "description": "Data center of Yokohama city",
    "attributes": {
        "city": "Yokohama (Kanagawa, Japan)",
        "latitude": "35.3200",
        "longitude": "139.5800"
    }
}

Parameter

Type

Description

id

string

(Required) 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.

name

string

(Optional) Data center name

You cannot use the following characters:

/ \ ^ $ . * + ? ( ) [ ] { } |

You cannot specify space character at the start or end.

description

string

(Optional) Description

attributes

object

(Optional) Information about the attributes of the data center

You can define a pair of any key and any value as a map.

Response message

Body
None.

Coding example

curl -v -X PUT -H "Content-Type:application/json" -s "https://example.com:443/portal/app/v1/datacenters/8a11a1bf6f1c0a95016f8d41c4d7000a" -d @./request.json  -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.)