UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

108 lines (107 loc) 3.34 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a global forwarding rule within GCE from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_forwarding_rule = gcp.compute.getGlobalForwardingRule({ * name: "forwarding-rule-global", * }); * ``` */ export declare function getGlobalForwardingRule(args: GetGlobalForwardingRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetGlobalForwardingRuleResult>; /** * A collection of arguments for invoking getGlobalForwardingRule. */ export interface GetGlobalForwardingRuleArgs { /** * The name of the global forwarding rule. * * - - - */ name: string; /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: string; } /** * A collection of values returned by getGlobalForwardingRule. */ export interface GetGlobalForwardingRuleResult { readonly allowPscGlobalAccess: boolean; readonly baseForwardingRule: string; readonly description: string; readonly effectiveLabels: { [key: string]: string; }; readonly externalManagedBackendBucketMigrationState: string; readonly externalManagedBackendBucketMigrationTestingPercentage: number; readonly forwardingRuleId: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ipAddress: string; readonly ipProtocol: string; readonly ipVersion: string; readonly labelFingerprint: string; readonly labels: { [key: string]: string; }; readonly loadBalancingScheme: string; readonly metadataFilters: outputs.compute.GetGlobalForwardingRuleMetadataFilter[]; readonly name: string; readonly network: string; readonly networkTier: string; readonly noAutomateDnsZone: boolean; readonly portRange: string; readonly project?: string; readonly pscConnectionId: string; readonly pscConnectionStatus: string; readonly pulumiLabels: { [key: string]: string; }; readonly selfLink: string; readonly serviceDirectoryRegistrations: outputs.compute.GetGlobalForwardingRuleServiceDirectoryRegistration[]; readonly sourceIpRanges: string[]; readonly subnetwork: string; readonly target: string; } /** * Get a global forwarding rule within GCE from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_forwarding_rule = gcp.compute.getGlobalForwardingRule({ * name: "forwarding-rule-global", * }); * ``` */ export declare function getGlobalForwardingRuleOutput(args: GetGlobalForwardingRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGlobalForwardingRuleResult>; /** * A collection of arguments for invoking getGlobalForwardingRule. */ export interface GetGlobalForwardingRuleOutputArgs { /** * The name of the global forwarding rule. * * - - - */ name: pulumi.Input<string>; /** * The project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input<string>; }