@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
64 lines • 2.53 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.getCustomAttributeOutput = exports.getCustomAttribute = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `vsphere.CustomAttribute` data source can be used to reference custom
* attributes that are not managed by this provider. Its attributes are exactly the
* same as the `vsphere.CustomAttribute` resource,
* and, like importing, the data source takes a name argument for the search. The
* `id` and other attributes are then populated with the data found by the search.
*
* > **NOTE:** Custom attributes are unsupported on direct ESXi host connections
* and require vCenter Server.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const attribute = vsphere.getCustomAttribute({
* name: "test-attribute",
* });
* ```
*/
function getCustomAttribute(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vsphere:index/getCustomAttribute:getCustomAttribute", {
"name": args.name,
}, opts);
}
exports.getCustomAttribute = getCustomAttribute;
/**
* The `vsphere.CustomAttribute` data source can be used to reference custom
* attributes that are not managed by this provider. Its attributes are exactly the
* same as the `vsphere.CustomAttribute` resource,
* and, like importing, the data source takes a name argument for the search. The
* `id` and other attributes are then populated with the data found by the search.
*
* > **NOTE:** Custom attributes are unsupported on direct ESXi host connections
* and require vCenter Server.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const attribute = vsphere.getCustomAttribute({
* name: "test-attribute",
* });
* ```
*/
function getCustomAttributeOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vsphere:index/getCustomAttribute:getCustomAttribute", {
"name": args.name,
}, opts);
}
exports.getCustomAttributeOutput = getCustomAttributeOutput;
//# sourceMappingURL=getCustomAttribute.js.map