@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
85 lines (84 loc) • 2.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "./types";
/**
* Use this datasource to retrieve attributes of the Project API resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@pulumi/equinix";
*
* const tfProject1 = equinix.GetMetalProject({
* name: "Terraform Fun",
* });
* export const usersOfTerraformFun = tfProject1.then(tfProject1 => tfProject1.userIds);
* ```
*/
export declare function getMetalProject(args?: GetMetalProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetMetalProjectResult>;
/**
* A collection of arguments for invoking GetMetalProject.
*/
export interface GetMetalProjectArgs {
/**
* The name which is used to look up the project.
*/
name?: string;
/**
* The UUID by which to look up the project.
*/
projectId?: string;
}
/**
* A collection of values returned by GetMetalProject.
*/
export interface GetMetalProjectResult {
/**
* Whether Backend Transfer is enabled for this project.
*/
readonly backendTransfer: boolean;
/**
* Optional BGP settings. Refer to [Equinix Metal guide for BGP](https://metal.equinix.com/developers/docs/networking/local-global-bgp/).
*/
readonly bgpConfigs: outputs.GetMetalProjectBgpConfig[];
/**
* The timestamp for when the project was created.
*/
readonly created: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
/**
* The UUID of this project's parent organization.
*/
readonly organizationId: string;
/**
* The UUID of payment method for this project.
*/
readonly paymentMethodId: string;
readonly projectId: string;
/**
* The timestamp for the last time the project was updated.
*/
readonly updated: string;
/**
* List of UUIDs of user accounts which belong to this project.
*/
readonly userIds: string[];
}
export declare function getMetalProjectOutput(args?: GetMetalProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetalProjectResult>;
/**
* A collection of arguments for invoking GetMetalProject.
*/
export interface GetMetalProjectOutputArgs {
/**
* The name which is used to look up the project.
*/
name?: pulumi.Input<string>;
/**
* The UUID by which to look up the project.
*/
projectId?: pulumi.Input<string>;
}