GetAssociatedResource
Gets the resource associated with the application.
Request Syntax
GET /applications/application
/resources/resourceType
/resource
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- application
-
The name, ID, or ARN of the application.
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
([-.\w]+)|(arn:aws[-a-z]*:servicecatalog:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:/applications/[-.\w]+)
Required: Yes
- resource
-
The name or ID of the resource associated with the application.
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
\S+
Required: Yes
- resourceType
-
The type of resource associated with the application.
Valid Values:
CFN_STACK | RESOURCE_TAG_VALUE
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"resource": {
"arn": "string",
"associationTime": "string",
"integrations": {
"resourceGroup": {
"arn": "string",
"errorMessage": "string",
"state": "string"
}
},
"name": "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.
Errors
- InternalServerException
-
The service is experiencing internal problems.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource does not exist.
HTTP Status Code: 404
- ValidationException
-
The request has invalid or missing parameters.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: