@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
54 lines • 1.71 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getKeypairOutput = exports.getKeypair = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID and public key of an OpenStack keypair.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const kp = openstack.compute.getKeypair({
* name: "sand",
* });
* ```
*/
function getKeypair(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:compute/getKeypair:getKeypair", {
"name": args.name,
"region": args.region,
"userId": args.userId,
}, opts);
}
exports.getKeypair = getKeypair;
/**
* Use this data source to get the ID and public key of an OpenStack keypair.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const kp = openstack.compute.getKeypair({
* name: "sand",
* });
* ```
*/
function getKeypairOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:compute/getKeypair:getKeypair", {
"name": args.name,
"region": args.region,
"userId": args.userId,
}, opts);
}
exports.getKeypairOutput = getKeypairOutput;
//# sourceMappingURL=getKeypair.js.map