@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
168 lines (167 loc) • 4.95 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of ssl vpn servers
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
* vpcId: fooVpc.id,
* subnetId: fooSubnet.id,
* bandwidth: 5,
* vpnGatewayName: "acc-test1",
* description: "acc-test1",
* period: 7,
* projectName: "default",
* sslEnabled: true,
* sslMaxConnections: 5,
* });
* const fooSslVpnServer = new volcengine.vpn.SslVpnServer("fooSslVpnServer", {
* vpnGatewayId: fooGateway.id,
* localSubnets: [fooSubnet.cidrBlock],
* clientIpPool: "172.16.2.0/24",
* sslVpnServerName: "acc-test-ssl",
* description: "acc-test",
* protocol: "UDP",
* cipher: "AES-128-CBC",
* auth: "SHA1",
* compress: true,
* });
* const fooSslVpnServers = volcengine.vpn.getSslVpnServersOutput({
* ids: [fooSslVpnServer.id],
* });
* ```
*/
export declare function getSslVpnServers(args?: GetSslVpnServersArgs, opts?: pulumi.InvokeOptions): Promise<GetSslVpnServersResult>;
/**
* A collection of arguments for invoking getSslVpnServers.
*/
export interface GetSslVpnServersArgs {
/**
* The ids list.
*/
ids?: string[];
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The name of the ssl vpn server.
*/
sslVpnServerName?: string;
/**
* The id of the vpn gateway.
*/
vpnGatewayId?: string;
}
/**
* A collection of values returned by getSslVpnServers.
*/
export interface GetSslVpnServersResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
readonly outputFile?: string;
/**
* The name of the SSL server.
*/
readonly sslVpnServerName?: string;
/**
* List of SSL VPN servers.
*/
readonly sslVpnServers: outputs.vpn.GetSslVpnServersSslVpnServer[];
/**
* The total count of SSL VPN server query.
*/
readonly totalCount: number;
/**
* The vpn gateway id.
*/
readonly vpnGatewayId?: string;
}
/**
* Use this data source to query detailed information of ssl vpn servers
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
* vpcId: fooVpc.id,
* subnetId: fooSubnet.id,
* bandwidth: 5,
* vpnGatewayName: "acc-test1",
* description: "acc-test1",
* period: 7,
* projectName: "default",
* sslEnabled: true,
* sslMaxConnections: 5,
* });
* const fooSslVpnServer = new volcengine.vpn.SslVpnServer("fooSslVpnServer", {
* vpnGatewayId: fooGateway.id,
* localSubnets: [fooSubnet.cidrBlock],
* clientIpPool: "172.16.2.0/24",
* sslVpnServerName: "acc-test-ssl",
* description: "acc-test",
* protocol: "UDP",
* cipher: "AES-128-CBC",
* auth: "SHA1",
* compress: true,
* });
* const fooSslVpnServers = volcengine.vpn.getSslVpnServersOutput({
* ids: [fooSslVpnServer.id],
* });
* ```
*/
export declare function getSslVpnServersOutput(args?: GetSslVpnServersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSslVpnServersResult>;
/**
* A collection of arguments for invoking getSslVpnServers.
*/
export interface GetSslVpnServersOutputArgs {
/**
* The ids list.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The name of the ssl vpn server.
*/
sslVpnServerName?: pulumi.Input<string>;
/**
* The id of the vpn gateway.
*/
vpnGatewayId?: pulumi.Input<string>;
}