NetworkSecurityManagerCustomerAPI / Client / list_templates
list_templates¶
- NetworkSecurityManagerCustomerAPI.Client.list_templates(**kwargs)¶
Lists the templates in the account. You can filter the results by status and page through them using
maxResultsandnextToken.See also: AWS API Documentation
Request Syntax
response = client.list_templates( maxResults=123, nextToken='string', status='ACTIVE'|'DRAFT'|'DISABLED' )
- Parameters:
maxResults (integer) – The maximum number of results to return in a single call. Valid range: 1-100. To retrieve the remaining results, use the returned
nextTokenvalue in a subsequent call.nextToken (string) – The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
status (string) – Filters the results by status, either
ACTIVEorDRAFT.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'templates': [ { 'templateId': 'string', 'templateArn': 'string', 'templateName': 'string', 'status': 'DRAFT'|'ACTIVE'|'DISABLED', 'version': 'string', 'hasPublishedVersion': True|False, 'firewallType': 'WAF', 'updatedAt': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) –
nextToken (string) –
The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
templates (list) –
The list of templates.
(dict) –
Summary information about a template.
templateId (string) –
The service-generated id of the template.
templateArn (string) –
The Amazon Resource Name (ARN) of the template.
templateName (string) –
The name of the template.
status (string) –
The current status of the resource:
DRAFT(unpublished, editable) orACTIVE(published, in use).version (string) –
The version of the resource.
hasPublishedVersion (boolean) –
Specifies whether a published version of the resource exists.
firewallType (string) –
The firewall type associated with the resource.
updatedAt (datetime) –
The time when the resource was last updated. For a snapshot, this is the time when the snapshot was created.
Exceptions
NetworkSecurityManagerCustomerAPI.Client.exceptions.ValidationExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.InternalServerExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.AccessDeniedExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.ThrottlingException