Returns AWS image for the specified AMI name
POSThttps://api.spectrocloud.com/v1/clouds/aws/regions/:region/images
Returns AWS image for the specified AMI name
Request
Path Parameters
region stringrequired
Region to find AWS image
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
Request payload to find the AWS image
amiNamestring
AWS image ami name
awsAccount
object
Responses
- 200
(empty)
- application/json
- Schema
- Example (from schema)
Schema
idstring
AWS image id
namestring
AWS image name
ownerstring
AWS image owner id
{
"id": "string",
"name": "string",
"owner": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/clouds/aws/regions/:region/images' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"amiName": "string",
"awsAccount": {
"accessKey": "string",
"credentialType": "secret",
"partition": "aws",
"policyARNs": [
"string"
],
"secretKey": "string",
"sts": {
"arn": "string",
"externalId": "string"
}
}
}'