@twingate/pulumi-twingate
Version:
A Pulumi package for creating and managing Twingate cloud resources.
91 lines (90 loc) • 2.93 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Connectors provide connectivity to Remote Networks. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/understanding-access-nodes).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@twingate/pulumi-twingate";
*
* const foo = twingate.getTwingateConnector({
* id: "<your connector's id>",
* });
* ```
*/
export declare function getTwingateConnector(args: GetTwingateConnectorArgs, opts?: pulumi.InvokeOptions): Promise<GetTwingateConnectorResult>;
/**
* A collection of arguments for invoking getTwingateConnector.
*/
export interface GetTwingateConnectorArgs {
/**
* The ID of the Connector. The ID for the Connector can be obtained from the Admin API or the URL string in the Admin Console.
*/
id: string;
}
/**
* A collection of values returned by getTwingateConnector.
*/
export interface GetTwingateConnectorResult {
/**
* The hostname of the machine hosting the Connector.
*/
readonly hostname: string;
/**
* The ID of the Connector. The ID for the Connector can be obtained from the Admin API or the URL string in the Admin Console.
*/
readonly id: string;
/**
* The name of the Connector.
*/
readonly name: string;
/**
* The Connector's private IP addresses.
*/
readonly privateIps: string[];
/**
* The Connector's public IP address.
*/
readonly publicIp: string;
/**
* The ID of the Remote Network the Connector is attached to.
*/
readonly remoteNetworkId: string;
/**
* The Connector's state. One of `ALIVE`, `DEAD_NO_HEARTBEAT`, `DEAD_HEARTBEAT_TOO_OLD` or `DEAD_NO_RELAYS`.
*/
readonly state: string;
/**
* Determines whether status notifications are enabled for the Connector.
*/
readonly statusUpdatesEnabled: boolean;
/**
* The Connector's version.
*/
readonly version: string;
}
/**
* Connectors provide connectivity to Remote Networks. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/understanding-access-nodes).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@twingate/pulumi-twingate";
*
* const foo = twingate.getTwingateConnector({
* id: "<your connector's id>",
* });
* ```
*/
export declare function getTwingateConnectorOutput(args: GetTwingateConnectorOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTwingateConnectorResult>;
/**
* A collection of arguments for invoking getTwingateConnector.
*/
export interface GetTwingateConnectorOutputArgs {
/**
* The ID of the Connector. The ID for the Connector can be obtained from the Admin API or the URL string in the Admin Console.
*/
id: pulumi.Input<string>;
}