GetManagedView
Retrieves details of the specified AWS-managed view.
Minimum permissions
To call this operation, you must have the following permissions:
-
Action:
resource-explorer-2:GetManagedViews
Resource: The ARN of the specified view.
Request Syntax
POST /GetManagedView HTTP/1.1
Content-type: application/json
{
"ManagedViewArn": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ManagedViewArn
-
The Amazon resource name (ARN) of the managed view.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1011.
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"ManagedView": {
"Filters": {
"FilterString": "string"
},
"IncludedProperties": [
{
"Name": "string"
}
],
"LastUpdatedAt": "string",
"ManagedViewArn": "string",
"ManagedViewName": "string",
"Owner": "string",
"ResourcePolicy": "string",
"Scope": "string",
"TrustedService": "string",
"Version": "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.
- ManagedView
-
Details about the specified managed view.
Type: ManagedView object
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
The credentials that you used to call this operation don't have the minimum required permissions.
HTTP Status Code: 403
- InternalServerException
-
The request failed because of internal service error. Try your request again later.
HTTP Status Code: 500
- ResourceNotFoundException
-
You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.
HTTP Status Code: 404
- ThrottlingException
-
The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.
HTTP Status Code: 429
- UnauthorizedException
-
The principal making the request isn't permitted to perform the operation.
HTTP Status Code: 401
- ValidationException
-
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
Examples
Example
The following example shows the call response with details about the managed view.
Sample Request
POST /GetManagedView HTTP/1.1
Host: resource-explorer-2.us-east-1.amazonaws.com
X-Amz-Date: 20221101T200059Z
Accept-Encoding: identity
User-Agent: <UserAgentString>
Content-Length: <PayloadSizeBytes>
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=<Headers>, Signature=<Signature>
{
// required field
"ManagedViewArn": "arn:aws:resource-explorer-2:us-east-1:111122223333:managed-view/ExampleManagedViewName/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>
{
"ManagedView": {
"ManagedViewArn": "arn:aws:resource-explorer-2:us-east-1:111122223333:managed-view/ExampleManagedViewName/EXAMPLE8-90ab-cdef-fedc-EXAMPLE11111",
"ManagedViewName": "ExampleManagedViewName",
"TrustedService": "servicea.amazonaws.com",
"LastUpdatedAt": "2024-01-01T01:01:01.100000+00:00",
"Owner": "111111111111",
"Scope": "arn:aws:iam::111111111111:root",
"Filters": {
"FilterString": ""
},
"IncludedProperties": [
{
"Name": "tags"
}
],
"ResourcePolicy": "resource_policy_string",
"Version": "1"
}
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: