Fetch CSG By Names

Fetch CSG By Names

This API is to be used for fetching the CSGs based on csg names.

Request
URI
POST
https://{api_host}/hybridity/api/ztp/v1/csgs/fetch-by-names
COPY
Request Body

The request payload for Fetch CSGs By Names API.

InlineZtpV1CsgsFetchByNamesRequestBody of type(s) application/json
Required
{
    "csgs": [
        "string"
    ]
}
array of string
csgs
Required

The name of the CSGs.

Authentication
This operation uses the following authentication methods.
Responses
200

Response includes list of csg as specified by the csg names.

Returns InlineZtpV1CsgsFetchByNames200Response of type(s) application/json
{
    "csgs": [
        {
            "id": "string",
            "version": 0,
            "name": "string",
            "type": "string",
            "enabled": false,
            "preDeployed": {
                "preDeployed": false
            },
            "parentDomainId": "string",
            "parentDomainName": "cdc1",
            "switches": [
                {
                    "name": "string",
                    "uplinks": [
                        {
                            "pnic": "string",
                            "name": "string"
                        }
                    ]
                }
            ],
            "networks": [
                {
                    "type": "string",
                    "name": "string",
                    "switch": "string",
                    "segmentType": "string",
                    "vlan": 0,
                    "mac_learning_enabled": false,
                    "uplinkTeamingPolicy": {
                        "uplinkPortOrder": {
                            "active": [
                                "string"
                            ],
                            "standby": [
                                "string"
                            ],
                            "unused": [
                                "string"
                            ]
                        }
                    }
                }
            ],
            "settings": {
                "dns": {
                    "suffix": "string",
                    "servers": [
                        "string"
                    ]
                },
                "ntp": {
                    "servers": [
                        "string"
                    ]
                },
                "csiTagging": {
                    "enableCsiZoning": false,
                    "clusterCsiZoneTagNamingScheme": "string",
                    "hostCsiZoneTagNamingScheme": "string"
                },
                "disableDatastoreCustomization": false
            },
            "csiTags": {
                "csiZoneTag": "string"
            },
            "csiCategories": {
                "useExisting": false,
                "zone": "string"
            },
            "hcpId": "string",
            "hcpName": "string",
            "hostCount": 0,
            "status": "string",
            "createdTimestamp": 0,
            "lastUpdatedTimestamp": 0,
            "messages": {
                "warnings": [
                    {
                        "code": "string",
                        "message": "string",
                        "stack": "string"
                    }
                ],
                "errors": [
                    {
                        "code": "string",
                        "message": "string",
                        "stack": "string"
                    }
                ]
            }
        }
    ],
    "notfound": [
        "string"
    ]
}
array of object
csgs
Optional

The list of csgs available.

array of string
notfound
Optional

The list of csg names which are not available.


301

API endpoint has permanently moved.

Returns InlineZtpV1CsgsFetchByNames301Response of type(s) application/json
{
    "redirectURL": "string"
}
string
redirectURL
Optional

redirectURL

Response Headers

string
Location

URI where the client will find the new endpoint.


400

Response may include details of why the request is bad.

Returns InlineZtpV1CsgsFetchByNames400Response of type(s) application/json
{
    "warnings": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ]
}
array of object
warnings
Optional

The list of warnings.

array of object
errors
Optional

The list of errors.


401

User is not authenticated to invoke this endpoint.

Operation doesn't return any data structure

403

User is not authorized to invoke this endpoint.

Operation doesn't return any data structure

422

The request payload couldn't be processed by the server.

Returns InlineZtpV1CsgsFetchByNames422Response of type(s) application/json
{
    "warnings": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ]
}
array of object
warnings
Optional

The list of warnings.

array of object
errors
Optional

The list of errors.


500

An internal server error has occurred.

Returns InlineZtpV1CsgsFetchByNames500Response of type(s) application/json
{
    "warnings": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ],
    "errors": [
        {
            "code": "string",
            "message": "string",
            "stack": "string"
        }
    ]
}
array of object
warnings
Optional

The list of warnings.

array of object
errors
Optional

The list of errors.