Get V Center V2 Using GET

Get V Center V2 Using GET

This API is used to get vCenter details.

Request
URI
GET
https://{api_host}/lcm/lcops/api/v2/datacenters/{dataCenterVmid}/vcenters/{vCenterName}
COPY
Path Parameters
string
dataCenterVmid
Required

dataCenterVmid

string
vCenterName
Required

vCenterName


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns VCenter of type(s) application/json
{
    "contentLibraries": [
        {
            "contentLibraryId": "string",
            "contentLibraryItems": [
                {
                    "contentLibraryItemId": "string",
                    "contentLibraryItemName": "string"
                }
            ],
            "contentLibraryName": "string"
        }
    ],
    "dataCollectionStatus": "string",
    "name": "string",
    "templateCustomSpecs": [
        {
            "name": "string"
        }
    ],
    "vCDataCenters": [
        {
            "clusters": [
                {
                    "clusterName": "string",
                    "cpu": 0,
                    "hosts": [
                        {
                            "cpu": 0,
                            "hostName": "string",
                            "memory": "number",
                            "networks": [
                                {
                                    "isManaged": false,
                                    "network": "string"
                                }
                            ],
                            "storages": [
                                {
                                    "availableSize": "number",
                                    "isManaged": false,
                                    "storageName": "string",
                                    "totalSize": "number"
                                }
                            ],
                            "totalStorage": "number"
                        }
                    ],
                    "isManaged": false,
                    "memory": "number",
                    "networks": [
                        {
                            "isManaged": false,
                            "network": "string"
                        }
                    ],
                    "resourcePools": [
                        {
                            "children": [
                                "ResourcePool Object"
                            ],
                            "morId": "string",
                            "name": "string"
                        }
                    ],
                    "storages": [
                        {
                            "availableSize": "number",
                            "isManaged": false,
                            "storageName": "string",
                            "totalSize": "number"
                        }
                    ],
                    "virtualMachineTemplates": [
                        {
                            "name": "string"
                        }
                    ],
                    "virtualMachines": [
                        {
                            "hostName": "string",
                            "ipAddress": "string",
                            "name": "string",
                            "productName": "string",
                            "productVersion": "string",
                            "vCenter": "string",
                            "vmName": "string"
                        }
                    ]
                }
            ],
            "folders": [
                {
                    "children": [
                        "Folder Object"
                    ],
                    "morId": "string",
                    "name": "string"
                }
            ],
            "hosts": [
                {
                    "cpu": 0,
                    "hostName": "string",
                    "memory": "number",
                    "networks": [
                        {
                            "isManaged": false,
                            "network": "string"
                        }
                    ],
                    "storages": [
                        {
                            "availableSize": "number",
                            "isManaged": false,
                            "storageName": "string",
                            "totalSize": "number"
                        }
                    ],
                    "totalStorage": "number"
                }
            ],
            "vcDataCenterName": "string"
        }
    ],
    "vCenterHost": "string",
    "vCenterName": "string",
    "vcPassword": "string",
    "vcUsedAs": "string",
    "vcUsername": "string",
    "version": "string"
}
contentLibraries
Optional

contentLibraries

string
dataCollectionStatus
Optional

dataCollectionStatus

string
name
Optional

name

templateCustomSpecs
Optional

templateCustomSpecs

vCDataCenters
Optional

vCDataCenters

string
vCenterHost
Optional

vCenterHost

string
vCenterName
Optional

vCenterName

string
vcPassword
Optional

vcPassword

string
vcUsedAs
Optional

vcUsedAs

string
vcUsername
Optional

vcUsername

string
version
Optional

version


400

Bad Request

Returns GenericErrorResponseDTO of type(s) application/json
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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

Returns GenericErrorResponseDTO of type(s) application/json
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
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
{
    "errorCode": "LCM_EXAMPLE_API_ERROR0000",
    "errorLabel": "Example Error!",
    "message": "Something went wrong!",
    "recommendations": []
}
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations