@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
69 lines • 2.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to access IP ranges in your firewall rules.
*
* https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const ranges = gcp.compute.getLBIPRanges({});
* const lb = new gcp.compute.Firewall("lb", {
* name: "lb-firewall",
* network: main.name,
* allows: [{
* protocol: "tcp",
* ports: ["80"],
* }],
* sourceRanges: ranges.then(ranges => ranges.networks),
* targetTags: ["InstanceBehindLoadBalancer"],
* });
* ```
*/
export declare function getLBIPRanges(opts?: pulumi.InvokeOptions): Promise<GetLBIPRangesResult>;
/**
* A collection of values returned by getLBIPRanges.
*/
export interface GetLBIPRangesResult {
/**
* The IP ranges used for health checks when **HTTP(S), SSL proxy, TCP proxy, and Internal load balancing** is used
*/
readonly httpSslTcpInternals: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The IP ranges used for health checks when **Network load balancing** is used
*/
readonly networks: string[];
}
/**
* Use this data source to access IP ranges in your firewall rules.
*
* https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const ranges = gcp.compute.getLBIPRanges({});
* const lb = new gcp.compute.Firewall("lb", {
* name: "lb-firewall",
* network: main.name,
* allows: [{
* protocol: "tcp",
* ports: ["80"],
* }],
* sourceRanges: ranges.then(ranges => ranges.networks),
* targetTags: ["InstanceBehindLoadBalancer"],
* });
* ```
*/
export declare function getLBIPRangesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLBIPRangesResult>;
//# sourceMappingURL=getLBIPRanges.d.ts.map