Queries AScript rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListAScripts

The operation that you want to perform. Set the value to ListAScripts.

NextToken String No FFmyTO70tTpLG6I3FmYAXGKPd****

The token that determines the start point of the query. Valid values:

  • If NextToken is empty, it indicates that no subsequent query is to be sent.
  • If a value of NextToken is returned, the value is the token used for the next query.
MaxResults Integer No 50

The maximum number of entries to return.

Valid values: 1 to 100.

Default value: 20. If you do not set this parameter, the default value is used.

ListenerIds.N String No lsn-9v9b8576m2laih****

The IDs of the listeners. You can specify at most 20 IDs in each request.

AScriptIds.N String No as-aznwocxofkakf7****

The IDs of the AScript rules. You can specify at most 20 IDs at a time.

AScriptNames.N String No test

The names of the AScript rules. You can specify at most 10 names at a time.

Response parameters

Parameter Type Example Description
TotalCount Integer 1000

The total number of entries returned.

Note This parameter is optional and is not returned by default.
RequestId String 2CA81429-F160-593A-8AB5-A2A9617845B9

The ID of the request.

NextToken String FFmyTO70tTpLG6I3FmYAXGKPd****

The token that determines the start point of the query. Valid values:

  • If NextToken is empty, it indicates that no subsequent query is to be sent.
  • If a value of NextToken is returned, the value is the token used for the next query.
MaxResults Integer 50

The maximum number of entries returned.

AScripts Array of AScript

The list of the AScript rules.

AScriptId String as-aznwocxofkakf7****

The ID of the AScript rule.

AScriptName String test

The name of the AScript rule.

Enabled Boolean true

Indicates whether the AScript rule is enabled. Valid values:

  • true: enabled
  • false: disabled
ScriptContent String {test}

The content of the AScript rule.

AScriptStatus String Available

The status of the AScript rule. Valid values:

  • Creating: being created.
  • Available: created or updated.
  • Configuring: being updated.
  • Deleting: being deleted.
ListenerId String lsn-t0w1m9r6suiwmc****

The ID of the listener.

LoadBalancerId String alb-vv9rg2ub31tyec****

The ID of the Application Load Balancer (ALB) instance.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListAScripts
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&MaxResults=50
&ListenerIds=["lsn-9v9b8576m2laih****"]
&AScriptIds=["as-aznwocxofkakf7****"]
&AScriptNames=["test"]
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListAScriptsResponse>
    <TotalCount>1000</TotalCount>
    <RequestId>2CA81429-F160-593A-8AB5-A2A9617845B9</RequestId>
    <NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
    <MaxResults>50</MaxResults>
    <AScripts>
        <AScriptId>as-aznwocxofkakf7****</AScriptId>
        <AScriptName>test</AScriptName>
        <Enabled>true</Enabled>
        <ScriptContent>{test}</ScriptContent>
        <AScriptStatus>Available</AScriptStatus>
        <ListenerId>lsn-t0w1m9r6suiwmc****</ListenerId>
        <LoadBalancerId>alb-vv9rg2ub31tyec****</LoadBalancerId>
    </AScripts>
</ListAScriptsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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

For a list of error codes, see Service error codes.