Post Cluster Query

Post Cluster Query

Post a cluster query

Request
URI
POST
https://sfo-vcf01.rainpole.io//v1/domains/{domainId}/clusters/{clusterName}/queries
COPY
Path Parameters
string
domainId
Required

Domain ID

string
clusterName
Required

Cluster Name


Request Body
ClusterCriterion of type(s) application/json
Optional
{
    "description": "string",
    "name": "One among: UNMANAGED_CLUSTERS_IN_VCENTER, UNMANAGED_CLUSTER_IN_VCENTER"
}
object
arguments
Optional

Arguments required for a particular criterion

string
description
Optional

Description of the criterion

string
name
Optional

Name of the criterion

Responses
200

Ok

Returns ClusterQueryResponse of type(s) application/json
{
    "queryInfo": {
        "completed": false,
        "errorResponse": {
            "arguments": [
                "string"
            ],
            "causes": [
                {
                    "message": "string",
                    "type": "string"
                }
            ],
            "errorCode": "string",
            "errorType": "string",
            "message": "string",
            "nestedErrors": [
                "Error Object"
            ],
            "referenceToken": "string",
            "remediationMessage": "string"
        },
        "failure": false,
        "processing": false,
        "status": "string"
    },
    "result": {
        "elements": [
            {
                "hosts": [
                    {
                        "azName": "string",
                        "fqdn": "string",
                        "id": "string",
                        "ipAddress": "string",
                        "vmNics": [
                            {
                                "isActive": false,
                                "isAutoNegotiateSupported": false,
                                "isInUse": false,
                                "linkSpeedMB": 0,
                                "name": "string"
                            }
                        ]
                    }
                ],
                "id": "string",
                "isDefault": false,
                "isStretched": false,
                "name": "string",
                "primaryDatastoreName": "string",
                "primaryDatastoreType": "One among: VSAN, NFS, FC, VVOL_FC, VVOL_ISCSI, VVOL_NFS",
                "vdsSpecs": [
                    {
                        "isUsedByNsxt": false,
                        "name": "string",
                        "niocBandwidthAllocationSpecs": [
                            {
                                "niocTrafficResourceAllocation": {
                                    "limit": 0,
                                    "reservation": 0,
                                    "sharesInfo": {
                                        "level": "One among: low, normal, high, custom",
                                        "shares": 0
                                    }
                                },
                                "type": "string"
                            }
                        ],
                        "portGroupSpecs": [
                            {
                                "activeUplinks": [
                                    "string"
                                ],
                                "name": "string",
                                "transportType": "One among: VSAN, VMOTION, MANAGEMENT, PUBLIC, NFS, VREALIZE, ISCSI, EDGE_INFRA_OVERLAY_UPLINK"
                            }
                        ]
                    }
                ]
            }
        ],
        "pageMetadata": {
            "pageNumber": 0,
            "pageSize": 0,
            "totalElements": 0,
            "totalPages": 0
        }
    }
}
queryInfo
Optional

queryInfo

result
Optional

result


400

Bad Request

Returns Error of type(s) application/json
{
    "arguments": [
        "string"
    ],
    "causes": [
        {
            "message": "string",
            "type": "string"
        }
    ],
    "errorCode": "string",
    "errorType": "string",
    "message": "string",
    "nestedErrors": [
        "Error Object"
    ],
    "referenceToken": "string",
    "remediationMessage": "string"
}
array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

array of ErrorCause
causes
Optional

The underlying cause exceptions.

object
context
Optional

The error context (e.g. the component where it occurred).

string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

string
message
Optional

The localized error message

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.

string
remediationMessage
Optional

The localized remediation error message


500

Internal Server Error

Returns Error of type(s) application/json
{
    "arguments": [
        "string"
    ],
    "causes": [
        {
            "message": "string",
            "type": "string"
        }
    ],
    "errorCode": "string",
    "errorType": "string",
    "message": "string",
    "nestedErrors": [
        "Error Object"
    ],
    "referenceToken": "string",
    "remediationMessage": "string"
}
array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

array of ErrorCause
causes
Optional

The underlying cause exceptions.

object
context
Optional

The error context (e.g. the component where it occurred).

string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

string
message
Optional

The localized error message

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.

string
remediationMessage
Optional

The localized remediation error message