{"type":"api","title":"Get Configured Data Centres","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/e7cf6406-31b8-3f42-91c0-19f86a4708d2","info":{"title":"Crosswork VM Node Install APIs","description":"Crosswork VM Node Install APIs allow users to add and delete nodes.","version":"3.0.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/VM_INSTALL/vm-install-overview.md"}},"swagger":"2.0","basePath":"/crosswork/platform/v1","schemes":["http","https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer token for API authentication."}}},"spec":{"description":"Get map of Data Centres configured in Crosswork.","summary":"Get Configured Data Centres","operationId":"CwVmMangager_GetDCs","responses":{"200":{"description":"A successful response.","schema":{"type":"object","properties":{"VCenters":{"type":"object","additionalProperties":{"type":"object","properties":{"DCname":{"type":"string","title":"The vCenter DC Name, used as DC id"},"VCenterAddress":{"type":"string","title":"The vCenter address"},"VCenterUser":{"type":"string","title":"The vCenter username"},"VCenterPassword":{"type":"string","title":"The vCenter password"},"MgmtNetworkName":{"type":"string","title":"The name of the network in vCenter to be used as the Cw VM Management network"},"DataNetworkName":{"type":"string","title":"The name of the network in vCenter to be used as the Cw VM Data network"},"DCfolder":{"type":"string","title":"The folder on the vCenter"},"VMs":{"type":"array","items":{"type":"object","properties":{"Host":{"type":"string","title":"Virtualization host name"},"Datastore":{"type":"string","title":"Datastore name"},"HSDatastore":{"type":"string","title":"High Speed Datastore name"},"HostedCwVMs":{"type":"array","items":{"type":"string"},"title":"List of Cw VMs on this DC"}},"example":{"Host":"host1.example.com","Datastore":"mainDatastore","HSDatastore":"highSpeedDatastore1","HostedCwVMs":["vm1","vm2"]},"$$ref":"#/definitions/install_apiVMResource"}}},"example":{"DCname":"vcenter1","VCenterAddress":"vcenter1.example.com","VCenterUser":"admin","VCenterPassword":"password123","MgmtNetworkName":"mgmt-net","DataNetworkName":"data-net","DCfolder":"/folder1","VMs":[{"Host":"host1.example.com","Datastore":"mainDatastore","HSDatastore":"highSpeedDatastore1","HostedCwVMs":["vm1","vm2"]}]},"$$ref":"#/definitions/install_apiVCenterDC"},"description":"Map is keyed by VCenter id."}},"example":{"VCenters":{"vcenter1":{"DCname":"vcenter1","VCenterAddress":"vcenter1.example.com","VCenterUser":"admin","VCenterPassword":"password123","MgmtNetworkName":"mgmt-net","DataNetworkName":"data-net","DCfolder":"/folder1","VMs":[{"Host":"host1.example.com","Datastore":"mainDatastore","HSDatastore":"highSpeedDatastore1","HostedCwVMs":["vm1","vm2"]}]}}},"$$ref":"#/definitions/install_apiDCsResp"}},"default":{"description":"An unexpected error response.","schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"type_url":{"type":"string"},"value":{"type":"string","format":"byte"}},"example":{"type_url":"type.googleapis.com/google.protobuf.Any","value":"Error details in binary format"},"$$ref":"#/definitions/protobufAny"}}},"example":{"error":"RuntimeException","code":500,"message":"An unexpected error occurred during execution.","details":[{"type_url":"type.googleapis.com/google.protobuf.Any","value":"Error details in binary format"}]},"$$ref":"#/definitions/runtimeError"}}},"tags":["CwVmMangager"],"__originalOperationId":"CwVmMangager_GetDCs","consumes":["application/json"],"produces":["application/json"],"security":[{"bearerAuth":[]}],"method":"get","path":"/node-manager/dcs"}}