DescribePullThroughCacheRules
Returns the pull through cache rules for a registry.
Request Syntax
{
"ecrRepositoryPrefixes": [ "string" ],
"maxResults": number,
"nextToken": "string",
"registryId": "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.
- ecrRepositoryPrefixes
-
The Amazon ECR repository prefixes associated with the pull through cache rules to return. If no repository prefix value is specified, all pull through cache rules are returned.
Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 100 items.
Length Constraints: Minimum length of 2. Maximum length of 30.
Pattern:
^((?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*/?|ROOT)$Required: No
- maxResults
-
The maximum number of pull through cache rules returned by
DescribePullThroughCacheRulesRequestin paginated output. When this parameter is used,DescribePullThroughCacheRulesRequestonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribePullThroughCacheRulesRequestrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, thenDescribePullThroughCacheRulesRequestreturns up to 100 results and anextTokenvalue, if applicable.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1000.
Required: No
- nextToken
-
The
nextTokenvalue returned from a previous paginatedDescribePullThroughCacheRulesRequestrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value is null when there are no more results to return.Type: String
Required: No
- registryId
-
The AWS account ID associated with the registry to return the pull through cache rules for. If you do not specify a registry, the default registry is assumed.
Type: String
Pattern:
[0-9]{12}Required: No
Response Syntax
{
"nextToken": "string",
"pullThroughCacheRules": [
{
"createdAt": number,
"credentialArn": "string",
"customRoleArn": "string",
"ecrRepositoryPrefix": "string",
"registryId": "string",
"updatedAt": number,
"upstreamRegistry": "string",
"upstreamRegistryUrl": "string",
"upstreamRepositoryPrefix": "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.
- nextToken
-
The
nextTokenvalue to include in a futureDescribePullThroughCacheRulesRequestrequest. When the results of aDescribePullThroughCacheRulesRequestrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.Type: String
- pullThroughCacheRules
-
The details of the pull through cache rules.
Type: Array of PullThroughCacheRule objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidParameterException
-
The specified parameter is invalid. Review the available parameters for the API request.
- message
-
The error message associated with the exception.
HTTP Status Code: 400
- PullThroughCacheRuleNotFoundException
-
The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
HTTP Status Code: 400
- ServerException
-
These errors are usually caused by a server-side issue.
- message
-
The error message associated with the exception.
HTTP Status Code: 500
- ValidationException
-
There was an exception validating this request.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: