POST /poolgroup-inventory

POST /poolgroup-inventory

/poolgroup-inventory

Request
URI
POST
https://{api_host}/api/poolgroup-inventory
COPY
Header Parameters
string
X-Avi-Tenant
Optional

Avi Tenant Header

string
X-Avi-Tenant-UUID
Optional

Avi Tenant Header UUID

string
X-Avi-Version
Required

The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.

string
X-CSRFToken
Optional

Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.


Request Body

PoolGroupInventory object creation

PoolGroupInventory of type(s) application/json
Optional
{
    "_last_modified": "string",
    "config": {
        "cloud_ref": "string",
        "deactivate_primary_pool_on_down": false,
        "deployment_policy_ref": "string",
        "enable_http2": false,
        "fail_action": {
            "local_rsp": {
                "file": {
                    "content_type": "string",
                    "file_content": "string",
                    "file_length": 0
                },
                "status_code": "string"
            },
            "redirect": {
                "host": "string",
                "path": "string",
                "protocol": "string",
                "query": "string",
                "status_code": "string"
            },
            "type": "string"
        },
        "implicit_priority_labels": false,
        "markers": [
            {
                "key": "string",
                "values": [
                    "string"
                ]
            }
        ],
        "members": [
            {
                "deployment_state": "string",
                "pool_ref": "string",
                "priority_label": "string",
                "ratio": 0
            }
        ],
        "min_servers": 0,
        "name": "string",
        "tenant_ref": "string",
        "url": "string",
        "uuid": "string"
    },
    "url": "string",
    "uuid": "string"
}
Responses
200

OK

Returns PoolGroupInventory of type(s) application/json
"PoolGroupInventory Object"
string
_last_modified
Optional

UNIX time since epoch in microseconds. Units(MICROSECONDS).

object
config
Optional

config

string
url
Optional

url

string
uuid
Optional

UUID of the pool group. Field introduced in 22.1.1. Allowed in Enterprise edition with any value, Enterprise with Cloud Services edition.


401

log in failed

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/poolgroup-inventory