@equinix-labs/pulumi-equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
56 lines • 1.93 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.getProjectSshKeyOutput = exports.getProjectSshKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this datasource to retrieve attributes of a Project SSH Key API resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const myKey = equinix.metal.getProjectSshKey({
* search: "username@hostname",
* projectId: local.project_id,
* });
* ```
*/
function getProjectSshKey(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("equinix:metal/getProjectSshKey:getProjectSshKey", {
"id": args.id,
"projectId": args.projectId,
"search": args.search,
}, opts);
}
exports.getProjectSshKey = getProjectSshKey;
/**
* Use this datasource to retrieve attributes of a Project SSH Key API resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const myKey = equinix.metal.getProjectSshKey({
* search: "username@hostname",
* projectId: local.project_id,
* });
* ```
*/
function getProjectSshKeyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("equinix:metal/getProjectSshKey:getProjectSshKey", {
"id": args.id,
"projectId": args.projectId,
"search": args.search,
}, opts);
}
exports.getProjectSshKeyOutput = getProjectSshKeyOutput;
//# sourceMappingURL=getProjectSshKey.js.map