Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.vmwareengine/v1.getNetworkPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Retrieves a NetworkPolicy
resource by its resource name.
Using getNetworkPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkPolicy(args: GetNetworkPolicyArgs, opts?: InvokeOptions): Promise<GetNetworkPolicyResult>
function getNetworkPolicyOutput(args: GetNetworkPolicyOutputArgs, opts?: InvokeOptions): Output<GetNetworkPolicyResult>
def get_network_policy(location: Optional[str] = None,
network_policy_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkPolicyResult
def get_network_policy_output(location: Optional[pulumi.Input[str]] = None,
network_policy_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPolicyResult]
func LookupNetworkPolicy(ctx *Context, args *LookupNetworkPolicyArgs, opts ...InvokeOption) (*LookupNetworkPolicyResult, error)
func LookupNetworkPolicyOutput(ctx *Context, args *LookupNetworkPolicyOutputArgs, opts ...InvokeOption) LookupNetworkPolicyResultOutput
> Note: This function is named LookupNetworkPolicy
in the Go SDK.
public static class GetNetworkPolicy
{
public static Task<GetNetworkPolicyResult> InvokeAsync(GetNetworkPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkPolicyResult> Invoke(GetNetworkPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkPolicyResult> getNetworkPolicy(GetNetworkPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:vmwareengine/v1:getNetworkPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Network
Policy stringId - Project string
- Location string
- Network
Policy stringId - Project string
- location String
- network
Policy StringId - project String
- location string
- network
Policy stringId - project string
- location str
- network_
policy_ strid - project str
- location String
- network
Policy StringId - project String
getNetworkPolicy Result
The following output properties are available:
- Create
Time string - Creation time of this resource.
- Description string
- Optional. User-provided description for this network policy.
- Edge
Services stringCidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- External
Ip Pulumi.Google Native. VMware Engine. V1. Outputs. Network Service Response - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - Internet
Access Pulumi.Google Native. VMware Engine. V1. Outputs. Network Service Response - Network service that allows VMware workloads to access the internet.
- Name string
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- Uid string
- System-generated unique identifier for the resource.
- Update
Time string - Last update time of this resource.
- Vmware
Engine stringNetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - Vmware
Engine stringNetwork Canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- Create
Time string - Creation time of this resource.
- Description string
- Optional. User-provided description for this network policy.
- Edge
Services stringCidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- External
Ip NetworkService Response - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - Internet
Access NetworkService Response - Network service that allows VMware workloads to access the internet.
- Name string
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- Uid string
- System-generated unique identifier for the resource.
- Update
Time string - Last update time of this resource.
- Vmware
Engine stringNetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - Vmware
Engine stringNetwork Canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- create
Time String - Creation time of this resource.
- description String
- Optional. User-provided description for this network policy.
- edge
Services StringCidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- external
Ip NetworkService Response - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - internet
Access NetworkService Response - Network service that allows VMware workloads to access the internet.
- name String
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- uid String
- System-generated unique identifier for the resource.
- update
Time String - Last update time of this resource.
- vmware
Engine StringNetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - vmware
Engine StringNetwork Canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- create
Time string - Creation time of this resource.
- description string
- Optional. User-provided description for this network policy.
- edge
Services stringCidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- external
Ip NetworkService Response - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - internet
Access NetworkService Response - Network service that allows VMware workloads to access the internet.
- name string
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- uid string
- System-generated unique identifier for the resource.
- update
Time string - Last update time of this resource.
- vmware
Engine stringNetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - vmware
Engine stringNetwork Canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- create_
time str - Creation time of this resource.
- description str
- Optional. User-provided description for this network policy.
- edge_
services_ strcidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- external_
ip NetworkService Response - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - internet_
access NetworkService Response - Network service that allows VMware workloads to access the internet.
- name str
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- uid str
- System-generated unique identifier for the resource.
- update_
time str - Last update time of this resource.
- vmware_
engine_ strnetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - vmware_
engine_ strnetwork_ canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- create
Time String - Creation time of this resource.
- description String
- Optional. User-provided description for this network policy.
- edge
Services StringCidr - IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
- external
Ip Property Map - Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when
internet_access
is also enabled. - internet
Access Property Map - Network service that allows VMware workloads to access the internet.
- name String
- The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/us-central1/networkPolicies/my-network-policy
- uid String
- System-generated unique identifier for the resource.
- update
Time String - Last update time of this resource.
- vmware
Engine StringNetwork - Optional. The relative resource name of the VMware Engine network. Specify the name in the following form:
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where{project}
can either be a project number or a project ID. - vmware
Engine StringNetwork Canonical - The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
Supporting Types
NetworkServiceResponse
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi