The following request registers a data center.
Execution permission
You must be a system administrator or a security administrator.
Request line
POST base-URL/app/v1/datacenters
Request message
- Object ID
- None.
- Query parameters
- None.
- Body
-
{ "name": "Yokohama", "description": "Data center of Yokohama city", "attributes": { "city": "Yokohama (Kanagawa, Japan)", "latitude": "35.3200", "longitude": "139.5800" } }
Parameter
Type
Description
name
string
(Required) 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.
Coding example
curl -v -X POST -H "Content-Type:application/json" -s "https://example.com:443/portal/app/v1/datacenters" -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.)