BatchGetView - AWS Resource Explorer


Retrieves details about a list of views.

Minimum permissions

To call this operation, you must have the following permissions:

Related operations

Request Syntax

POST /BatchGetView HTTP/1.1 Content-type: application/json { "ViewArns": [ "string" ] }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.


A list of Amazon resource names (ARNs) that identify the views you want details for.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 20 items.

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Errors": [ { "ErrorMessage": "string", "ViewArn": "string" } ], "Views": [ { "Filters": { "FilterString": "string" }, "IncludedProperties": [ { "Name": "string" } ], "LastUpdatedAt": number, "Owner": "string", "Scope": "string", "ViewArn": "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.


If any of the specified ARNs result in an error, then this structure describes the error.

Type: Array of BatchGetViewError objects


A structure with a list of objects with details for each of the specified views.

Type: Array of View objects


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


The credentials that you used to call this operation don't have the minimum required permissions.

HTTP Status Code: 403


The request failed because of internal service error. Try your request again later.

HTTP Status Code: 500


The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.

HTTP Status Code: 429


The principal making the request isn't permitted to perform the operation.

HTTP Status Code: 401


You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.

HTTP Status Code: 400



The following example returns details about two views, as specified by their ARNs.

Sample Request

POST /BatchGetView HTTP/1.1 Host: X-Amz-Date: 20221101T200059Z Accept-Encoding: identity User-Agent: <UserAgentString> Content-Length: <PayloadSizeBytes> Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=<Headers>, Signature=<Signature> { "ViewArns": [ "arn:aws:resource-explorer-2:us-east-1:123456789012:view/My-EC2-Only-View/EXAMPLE8-90ab-cdef-fedc-EXAMPLE22222", "arn:aws:resource-explorer-2:us-east-1:123456789012:view/My-Main-View/EXAMPLE8-90ab-cdef-fedc-EXAMPLE11111" ] }

Sample Response

HTTP/1.1 200 OK Date: Tue, 01 Nov 2022 20:00:59 GMT Content-Type: application/json Content-Length: <PayloadSizeBytes> { "Views": [ { "Filters": { "FilterString": "service:ec2" }, "IncludedProperties": [ { "Name": "tags" } ], "LastUpdatedAt": "2022-07-13T21:33:45.249Z", "Owner": "123456789012", "Scope": "arn:aws:iam::123456789012:root", "ViewArn": "arn:aws:resource-explorer-2:us-east-1:123456789012:view/My-EC2-Only-View/EXAMPLE8-90ab-cdef-fedc-EXAMPLE22222" }, { "Filters": { "FilterString": "" }, "IncludedProperties": [ { "Name":"tags" } ], "LastUpdatedAt":"2022-07-13T20:34:11.314Z", "Owner":"123456789012", "Scope":"arn:aws:iam::123456789012:root", "ViewArn":"arn:aws:resource-explorer-2:us-east-1:123456789012:view/My-Main-View/EXAMPLE8-90ab-cdef-fedc-EXAMPLE11111" } ], "Errors": [] }

See Also

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