WAF / Client / list_web_acls
list_web_acls#
- WAF.Client.list_web_acls(**kwargs)#
Note
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns an array of WebACLSummary objects in the response.
See also: AWS API Documentation
Request Syntax
response = client.list_web_acls( NextMarker='string', Limit=123 )
- Parameters:
NextMarker (string) – If you specify a value for
Limitand you have moreWebACLobjects than the number that you specify forLimit, AWS WAF returns aNextMarkervalue in the response that allows you to list another group ofWebACLobjects. For the second and subsequentListWebACLsrequests, specify the value ofNextMarkerfrom the previous response to get information about another batch ofWebACLobjects.Limit (integer) – Specifies the number of
WebACLobjects that you want AWS WAF to return for this request. If you have moreWebACLobjects than the number that you specify forLimit, the response includes aNextMarkervalue that you can use to get another batch ofWebACLobjects.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextMarker': 'string', 'WebACLs': [ { 'WebACLId': 'string', 'Name': 'string' }, ] }
Response Structure
(dict) –
NextMarker (string) –
If you have more
WebACLobjects than the number that you specified forLimitin the request, the response includes aNextMarkervalue. To list moreWebACLobjects, submit anotherListWebACLsrequest, and specify theNextMarkervalue from the response in theNextMarkervalue in the next request.WebACLs (list) –
An array of WebACLSummary objects.
(dict) –
Note
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Contains the identifier and the name or description of the WebACL.
WebACLId (string) –
A unique identifier for a
WebACL. You useWebACLIdto get information about aWebACL(see GetWebACL), update aWebACL(see UpdateWebACL), and delete aWebACLfrom AWS WAF (see DeleteWebACL).WebACLIdis returned by CreateWebACL and by ListWebACLs.Name (string) –
A friendly name or description of the WebACL. You can’t change the name of a
WebACLafter you create it.
Exceptions
WAF.Client.exceptions.WAFInternalErrorExceptionWAF.Client.exceptions.WAFInvalidAccountException
Examples
The following example returns an array of up to 100 web ACLs.
response = client.list_web_acls( Limit=100, ) print(response)
Expected Output:
{ 'WebACLs': [ { 'Name': 'WebACLexample', 'WebACLId': 'webacl-1472061481310', }, ], 'ResponseMetadata': { '...': '...', }, }