REST API - list

vcenter topology nodes: list

Returns information about all vCenter and Platform Services Controller nodes matching the vcenter.topology.nodes.filter_spec. This operation was added in vSphere API 6.7.2.

Request:

HTTP request

GET https://{server}/rest/vcenter/topology/nodes

?filter.types.1=VCSA_EMBEDDED
&filter.types.2=VCSA_EMBEDDED

Request Query Parameters:

Name Type Description
bold = required
filter filter_spec Optional. Specification of matching vCenter and Platform Services Controller nodes for which information should be returned.
filter.types string[] Types of the appliance that a vCenter and Platform Services Controller node must be to match the filter (see vcenter.topology.nodes.appliance_type. This attribute was added in vSphere API 6.7.2.

Optional. If unset or empty, node of any ApplianceType match the filter.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "node""obj-103",
            "replication_partners"[
                "obj-103",
                "obj-103"
            ],
            "client_affinity""obj-103",
            "type""VCSA_EMBEDDED"
        },
        {
            "node""obj-103",
            "replication_partners"[
                "obj-103",
                "obj-103"
            ],
            "client_affinity""obj-103",
            "type""VCSA_EMBEDDED"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value summary[] commonly used information for all vCenter and Platform Services Controller nodes matching the vcenter.topology.nodes.filter_spec.
value[].node string Identifier for the vCenter or Platform Services Controller node. Identifier can be either IP address or DNS resolvable name of the node. This attribute was added in vSphere API 6.7.2.

When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.VCenter.name. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.VCenter.name.

value[].type string Appliance type of the node. This attribute was added in vSphere API 6.7.2.

Defines values for valid appliance types for the vCenter and Platform Services Controller node. See vcenter.topology.nodes.info. This enumeration was added in vSphere API 6.7.2. Value is one of:
VCSA_EMBEDDED: vCenter Server Appliance with an embedded Platform Services Controller. This constant was added in vSphere API 6.7.2.
VCSA_EXTERNAL: vCenter Server Appliance with an external Platform Services Controller. This constant was added in vSphere API 6.7.2.
PSC_EXTERNAL: An external Platform Services Controller. This constant was added in vSphere API 6.7.2.

value[].replication_partners string[] List of replication partners' node identifiers. Identifiers can be either IP address or DNS resolvable name of the partner node. This attribute was added in vSphere API 6.7.2.

Optional. It is only relevant when type has value [VCSA_EMBEDDED, PSC_EXTERNAL]. This field is optional and it is only relevant when the value of type is one of VCSA_EMBEDDED or PSC_EXTERNAL.When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vcenter.VCenter.name. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vcenter.VCenter.name.

Errors:

HTTP Status Code Type Description
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user doesn't have the required privileges.
400 invalid_argument if the vcenter.topology.nodes.filter_spec.types field contains a value that is not supported.