Retrieves a list of AScript rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:ListAScripts |
list |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The maximum number of entries to return. Valid values: 1 to 100. Default value: 20. |
50 |
| ListenerIds |
array |
No |
The listener IDs. You can specify at most 20 listener IDs in each call. |
|
|
string |
No |
The listener ID. |
lsn-9v9b8576m2laih**** |
|
| AScriptIds |
array |
No |
The AScript rule IDs. You can specify at most 20 IDs in each call. |
|
|
string |
No |
The rule ID. |
as-aznwocxofkakf7**** |
|
| AScriptNames |
array |
No |
The AScript rule names. You can specify at most 10 names in each call. |
|
|
string |
No |
The name of the AScript rule. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| TotalCount |
integer |
The total number of entries returned. Note
This parameter is optional. By default, this parameter is not returned. |
1000 |
| RequestId |
string |
The request ID. |
2CA81429-F160-593A-8AB5-A2A9617845B9 |
| NextToken |
string |
A pagination token used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The maximum number of entries returned. |
50 |
| AScripts |
array<object> |
The AScript rules. |
|
|
object |
The AScript rule. |
||
| AScriptId |
string |
The AScript rule ID. |
as-aznwocxofkakf7**** |
| AScriptName |
string |
The name of the AScript rule. |
test |
| Enabled |
boolean |
Indicates whether the AScript rule is enabled. Valid values:
|
true |
| ScriptContent |
string |
The content of the AScript rule. |
{test} |
| AScriptStatus |
string |
The status of the AScript rule. Valid values:
|
Available |
| ListenerId |
string |
The listener ID. |
lsn-t0w1m9r6suiwmc**** |
| LoadBalancerId |
string |
The Application Load Balancer (ALB) instance ID. |
alb-vv9rg2ub31tyec**** |
Examples
Success response
JSON format
{
"TotalCount": 1000,
"RequestId": "2CA81429-F160-593A-8AB5-A2A9617845B9",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 50,
"AScripts": [
{
"AScriptId": "as-aznwocxofkakf7****",
"AScriptName": "test",
"Enabled": true,
"ScriptContent": "{test}",
"AScriptStatus": "Available",
"ListenerId": "lsn-t0w1m9r6suiwmc****",
"LoadBalancerId": "alb-vv9rg2ub31tyec****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.LoadBalancer | Authentication has failed for LoadBalancer. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.