Search - LTM and GTM Pool
- F5 - LTM pool
- F5 - GTM pool
Before You Begin
- ADC > Control Center
- ADC > Dashboard > Application Widget
- ADC > Orphan objects
Request Structure
| Endpoint: | /adc-controlcenter-pool-object-search |
| Type: | POST |
| Sample URL: | To understand the elements of the sample URL, click here. |
| Headers: | |
| Content-Type: | application/json |
| Name | Description |
|---|---|
| sessionId
|
(Mandatory) Specifies the session ID of the user session received
after login. Type: String Constraints: The session ID is used when username and password are not provided. |
| username
|
(Mandatory) Specifies the login username used to access the
AppViewX. Type: String Constraints: The username, along with the password, is used when the session ID is not provided. |
| password
|
(Mandatory) Specifies the login password used to access the
AppViewX. Type: String Constraints: The password, along with the username, is used when the session ID is not provided. |
| Content-Type
|
(Mandatory) Specifies the format of the data in the
payload. Type: String Constraints: The value of this param must be ‘application/json’. |
| gwsource
|
(Mandatory) Specifies the source from which the request is
triggered. The options are:
|
| payload
|
(Mandatory) Contains all the params to be sent in the request body for the post request. See Payload section for more details. |
Payload
| Name | Description |
|---|---|
| deviceName
|
(Mandatory) Device name of the pool to be searched for. |
| objectName
|
(Mandatory) Object name to be searched. |
| objectType
|
(Mandatory) GTM pool and LTM pool have to be searched. Constraints: Value of param should be TM pool or WideIP Pool or both. |
| partition
|
(Optional) Partition in which the pool lies. |
| recordType
|
(Optional) Pool record type. |
| orphan
|
(Optional) Flag to get orphan objects. |
Response Structure
- Status Code: 200 OK
- Message: Successful
- Headers:
- Content-Type: application/json
| Name | Description |
|---|---|
| response
|
Contains the requested pool objects and pool members. |
| message
|
Failure description in case of error |
| appStatusCode
|
Application-specific status code for the response. It will be non-null for failure response. |
| tags
|
More info in case of a failed response. |
Response
| Name | Description |
|---|---|
| result
|
Contains result object |
Object
| Name | Description |
|---|---|
| Object
|
List of objects from the database that match the input query. |
Status Codes
| HTTP Status Code | appStatusCode | Message | Possible remediation |
|---|---|---|---|
| 200 Ok | - | Refer to sample response | |
| 404 Not Found | AVX_GW_009 | Resource not found, reason - Invalid apiid | |
| 400 | avx-common-028 | Invalid/ Incorrect payload |
Sample Request/Response
Use Case
Search pool object with mandatory and optional parameters.
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/adc-controlcenter-pool-object-search
{
"payload": {
"objects": [
{
"objectType": "ltm Pool",
"deviceName": "192.168.42.150",
"objectName": "pool_demo36_80",
"orphan" : true
}
]
}
}{
"response": {
"result": {
"objects": [
{
"id": "lp:@60518caecc48a15dda15a673:@pool_demo36_80:@Common",
"name": "pool_demo36_80",
"deviceName": "192.168.42.150",
"objectType": "ltm Pool",
"code": "lp",
"displayName": "pool_demo36_80/192.168.42.150/F5",
"orphan": true,
"recordType": null,
"status": "ENABLED",
"statusCode": "UNKNOWN ENABLED",
"childs": [
{
"id":"lpm:@6051da15a73:@pool_demo36_80:@Common::192.168.40.31:80:@Common",
"name": "192.168.40.31:80",
"code": "lpm",
"displayName": "192.168.40.31:80/192.168.40.31:80/pool_demo36_80/192.168.42.150/F5",
"partition": "Common",
"ip": "192.168.40.31",
"port": "80",
"status": "DISABLED",
"statusCode": "UNKNOWN DISABLED",
"memberName": "/Common/192.168.40.31",
"parentName": "pool_demo36_80",
"parentPartion": "Common"
}
]
}
},
"message": null,
"appStatusCode": null,
"tags": null,
"headers": null
}Reference
- IP/HostName/TenantName: Replace with the actual IP address, hostname,
or tenant name based on the specific configuration in AppViewX.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
The IP address will be included in the endpoint URL for an on-prem deployment.
- HostName: A human-readable label assigned to a device (host)
on a network
The hostname will be included in the endpoint URL for an on-prem deployment.
- TenantName: An identifier label for a tenant given to
indicate which tenant's data the API request will
access/modify
The tenant name will be included in the endpoint URL for a SaaS deployment.
- IP: A unique identifier assigned to each device connected to
a computer network that uses the Internet Protocol for communication
- GWPORT: AppViewX gateway port
A gateway port refers to a network port through which data is sent and received to communicate with a gateway in an on-prem deployment.
Example: 31443
- avxapi: Path parameter value (static) that is part of the endpoint's URL
- Endpoint: Endpoint of the API, for example: execute-hook
- gwsource: Source or origin of a gateway, for example: external.
