Create Data Center V2 Using POST

Create Data Center V2 Using POST

This API is used to create a data center.

Request
URI
POST
https://{api_host}/lcm/lcops/api/v2/datacenters
COPY
Request Body

dataCenterRequestDTO

DataCenterRequestResponseDTO of type(s) application/json
Optional
{
    "dataCenterName": "Datacenter-1",
    "dataCenterVmid": "d250f635-df41-44b9-b44c-1705c1ed304f",
    "primaryLocation": "Bangalore;Karnataka;IN;12.97194;77.59369"
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns DataCenterRequestResponseDTO of type(s) application/json
"DataCenterRequestResponseDTO Object"
string
dataCenterName
Optional

Data Center Name

string
dataCenterVmid
Optional

Data Center ID

string
primaryLocation
Optional

Primary Location


201

Created

Operation doesn't return any data structure

400

Bad Request

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure

409

Conflict

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


500

Internal Server Error

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/lcm/lcops/api/v2/datacenters