@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
91 lines • 3.18 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get details about a external access rule resource.
*
* To get more information about external address, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myExternalAccessRule = gcp.vmwareengine.getExternalAccessRule({
* name: "my-external-access-rule",
* parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
* });
* ```
*/
export declare function getExternalAccessRule(args: GetExternalAccessRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetExternalAccessRuleResult>;
/**
* A collection of arguments for invoking getExternalAccessRule.
*/
export interface GetExternalAccessRuleArgs {
/**
* Name of the resource.
*/
name: string;
/**
* The resource name of the network policy that this cluster belongs.
*/
parent: string;
}
/**
* A collection of values returned by getExternalAccessRule.
*/
export interface GetExternalAccessRuleResult {
readonly action: string;
readonly createTime: string;
readonly deletionPolicy: string;
readonly description: string;
readonly destinationIpRanges: outputs.vmwareengine.GetExternalAccessRuleDestinationIpRange[];
readonly destinationPorts: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ipProtocol: string;
readonly name: string;
readonly parent: string;
readonly priority: number;
readonly sourceIpRanges: outputs.vmwareengine.GetExternalAccessRuleSourceIpRange[];
readonly sourcePorts: string[];
readonly state: string;
readonly uid: string;
readonly updateTime: string;
}
/**
* Use this data source to get details about a external access rule resource.
*
* To get more information about external address, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myExternalAccessRule = gcp.vmwareengine.getExternalAccessRule({
* name: "my-external-access-rule",
* parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
* });
* ```
*/
export declare function getExternalAccessRuleOutput(args: GetExternalAccessRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetExternalAccessRuleResult>;
/**
* A collection of arguments for invoking getExternalAccessRule.
*/
export interface GetExternalAccessRuleOutputArgs {
/**
* Name of the resource.
*/
name: pulumi.Input<string>;
/**
* The resource name of the network policy that this cluster belongs.
*/
parent: pulumi.Input<string>;
}
//# sourceMappingURL=getExternalAccessRule.d.ts.map