Rest api to get all details of AWS marketplace public listing

357 Views Asked by At

Is there any Rest api to get all details(including the AMI image details) of AWS marketplace public listing?

For Example:-

https://aws.amazon.com/marketplace/pp/prodview-lk3liabqn4x2i?sr=0-1&ref_=beagle&applicationId=AWSMPContessa

I want all details if I provide any identifier from the URL.

1

There are 1 best solutions below

0
Joseph Shih On

Yes, you can use the EC2 API DescribeImages action and set the Owner parameter to aws-marketplace to output all the AWS Marketplace-owned AMIs and their details in a specific region.

Here is an example AWS CLI command that does that:

aws ec2 describe-images \
  --region us-east-1 \
  --owners aws-marketplace

With AWS CLI, you can also use filtering to filter the list.