是否有 API 获取 AWS Marketplace 产品

Is there a API to get AWS Marketplace Products

有休息API获取产品,订阅AWS MarketPlace产品中的产品吗?

我正在搜索此内容,但没有找到任何与 AWS Marketplace 相关的内容。

通过将 aws sdk 用于 node.js

var params = {
  DryRun: false || false,
  Owners: ['aws-marketplace'] //show images where Owner is aws-marketplace
};


//EC2 Describe image to get market place images
ec2.describeImages(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

结果记录之一

{ ImageId: 'ami-001a9130',
       ImageLocation: 'aws-marketplace/turnkey-piwik-12.0-squeeze-x86.ebs_2-f04a7ac8-c067-48f6-872b-c0bb29e4755f-ami-50dd5a39.1',
       State: 'available',
       OwnerId: '679593333241',
       CreationDate: '2013-01-18T19:54:11.000Z',
       Public: true,
       ProductCodes: [Object],
       Architecture: 'i386',
       ImageType: 'machine',
       KernelId: 'aki-dce26fec',
       ImageOwnerAlias: 'aws-marketplace',
       Name: 'turnkey-piwik-12.0-squeeze-x86.ebs_2-f04a7ac8-c067-48f6-872b-c0bb29e4755f-ami-50dd5a39.1',
       Description: 'http://www.turnkeylinux.org/piwik',
       RootDeviceType: 'ebs',
       RootDeviceName: '/dev/sda1',
       BlockDeviceMappings: [Object],
       VirtualizationType: 'paravirtual',
       Tags: [],
       Hypervisor: 'xen' }

可以按照此处的说明使用更多过滤器: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#describeImages-property