ListLogPatterns - Amazon CloudWatch Application Insights

ListLogPatterns

Lists the log patterns in the specific log LogPatternSet.

Request Syntax

{ "AccountId": "string", "MaxResults": number, "NextToken": "string", "PatternSetName": "string", "ResourceGroupName": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

AccountId

The AWS account ID for the resource group owner.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

Required: No

MaxResults

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 40.

Required: No

NextToken

The token to request the next page of results.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: .+

Required: No

PatternSetName

The name of the log pattern set.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 30.

Pattern: [a-zA-Z0-9\.\-_]*

Required: No

ResourceGroupName

The name of the resource group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [a-zA-Z0-9\.\-_]*

Required: Yes

Response Syntax

{ "AccountId": "string", "LogPatterns": [ { "Pattern": "string", "PatternName": "string", "PatternSetName": "string", "Rank": number } ], "NextToken": "string", "ResourceGroupName": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AccountId

The AWS account ID for the resource group owner.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

LogPatterns

The list of log patterns.

Type: Array of LogPattern objects

NextToken

The token used to retrieve the next page of results. This value is null when there are no more results to return.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: .+

ResourceGroupName

The name of the resource group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [a-zA-Z0-9\.\-_]*

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerException

The server encountered an internal error and is unable to complete the request.

HTTP Status Code: 400

ResourceNotFoundException

The resource does not exist in the customer account.

HTTP Status Code: 400

ValidationException

The parameter is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: