@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
74 lines • 2.43 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImagesOutput = exports.getImages = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get available IMS images within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const imageId = config.requireObject("imageId");
* const test = huaweicloud.Ims.getImage({
* imageId: imageId,
* });
* const ubuntu = huaweicloud.Ims.getImages({
* name: "Ubuntu 18.04 server 64bit",
* visibility: "public",
* });
* const centos-1 = huaweicloud.Ims.getImages({
* architecture: "x86",
* os: "CentOS",
* visibility: "public",
* });
* const centos-2 = huaweicloud.Ims.getImages({
* architecture: "x86",
* nameRegex: "^CentOS 7.4",
* visibility: "public",
* });
* const bmsImage = huaweicloud.Ims.getImages({
* architecture: "x86",
* imageType: "Ironic",
* visibility: "public",
* });
* ```
*/
function getImages(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Ims/getImages:getImages", {
"__supportAgentList": args.__supportAgentList,
"architecture": args.architecture,
"enterpriseProjectId": args.enterpriseProjectId,
"flavorId": args.flavorId,
"imageId": args.imageId,
"imageType": args.imageType,
"isWholeImage": args.isWholeImage,
"name": args.name,
"nameRegex": args.nameRegex,
"os": args.os,
"osVersion": args.osVersion,
"owner": args.owner,
"region": args.region,
"sortDirection": args.sortDirection,
"sortKey": args.sortKey,
"tag": args.tag,
"visibility": args.visibility,
}, opts);
}
exports.getImages = getImages;
function getImagesOutput(args, opts) {
return pulumi.output(args).apply(a => getImages(a, opts));
}
exports.getImagesOutput = getImagesOutput;
//# sourceMappingURL=getImages.js.map