Action - Enable an Object
- F5 - WideIP, WideIP pool, WideIP pool member, VIP, VIP pool member, LTM node, GTM server, virtual address
- A10 - FQDN, ServiceIP, SLB_VSV, SLB Server, SLB VS
AVI - Virtual service
Cisco - GSLB Answer, SLB virtual server, SLB real server- Citrix - GSLB virtual server, GSLB services, SLB virtual servers, SLB service group, SLB service
Akamai - Datacenter
Before you begin
-
ADC > ControlCenter > Actions > Enable/Disable/ForceDown
Request Structure
| Endpoint: | /adc-device-object-action-enable |
| Type: | PUT |
| Sample URL: | https://<IP/HostName/TenantName>:<GWPORT>/avxapi/adc-device-object-action-enable?gwsource=externalTo understand the elements of the sample URL, click here. |
| Headers: | |
| Content-Type: | application/json |
- 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.
| 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 |
|---|---|
| objectIds
|
(Mandatory) Resource ID of the objects. Use the search API to search/get the resource ID. |
Response Structure
- Status Code: 202 OK
- Message: Successful
- Headers:
- Content-Type: application/json
| Name | Description |
|---|---|
| response
|
Success message or failure description in case of error. |
| message
|
Success message along with the objectIds or failure description in case of error. |
| appStatusCode
|
Application-specific status code for the response. Will be non-null for failure response. |
| tags | More info in case of failure response. |
Status Codes
| HTTP Status Code | appStatusCode | Message | Possible remediation |
|---|---|---|---|
| 202 Accepted | - | Action triggered for the following <n> objects : <resourceIds> | - |
| 400 Bad Request | ADC_OBJ_ACTION_003 | Mandatory param 'objectIds' is missing or empty | Check if a non-null/non-empty value is given in the payload field - “objectIds”. |
| 400 Bad Request | ADC_OBJ_ACTION_004 | Action is invalid for the given objects. | Check for supported objects for the action and change the request objectId. |
| 404 Not Found | ADC_CC_0501 | No Objects found for performing the given action. | Check and ensure if the requested objectId is available and not deleted. |
| 403 Forbidden | ADC_DASH_0029 | No given object(s) have Write permission. | Check and ensure if the requested object has Read Write permission. |
Sample Request/Response
Use Case
Trigger enables action on objects with resource id gw:@5f369cba0ca9846e86a13e82:@192.168.112.63:@Common,gw:@5f369cba0ca9846e86a13e82:@192.168.55.248:@Common
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/adc-device-object-action-enable?gwsource=external
{
"payload": {
"objectIds": [
"gw:@5f369cba0ca9846e86a13e82:@192.168.112.63:@Common",
"gw:@5f369cba0ca9846e86a13e82:@192.168.55.248:@Common"
]
}
}{
"response": "Action triggered successfully.",
"message": "Action triggered for the following 2 objects : gw:@5f369cba0ca9846e86a13e82:@192.168.112.63:@Common,
gw:@5f369cba0ca9846e86a13e82:@192.168.55.248:@Common",
"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.