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)
public static Output<GetNetworkPolicyResult> getNetworkPolicy(GetNetworkPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:vmwareengine/v1:getNetworkPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- NetworkPolicy stringId 
- Project string
- Location string
- NetworkPolicy stringId 
- Project string
- location String
- networkPolicy StringId 
- project String
- location string
- networkPolicy stringId 
- project string
- location str
- network_policy_ strid 
- project str
- location String
- networkPolicy StringId 
- project String
getNetworkPolicy Result
The following output properties are available:
- CreateTime string
- Creation time of this resource.
- Description string
- Optional. User-provided description for this network policy.
- EdgeServices 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.
- ExternalIp 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_accessis also enabled.
- InternetAccess 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.
- UpdateTime string
- Last update time of this resource.
- VmwareEngine 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.
- VmwareEngine stringNetwork Canonical 
- The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- CreateTime string
- Creation time of this resource.
- Description string
- Optional. User-provided description for this network policy.
- EdgeServices 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.
- ExternalIp NetworkService Response 
- Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_accessis also enabled.
- InternetAccess 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.
- UpdateTime string
- Last update time of this resource.
- VmwareEngine 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.
- VmwareEngine stringNetwork Canonical 
- The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- createTime String
- Creation time of this resource.
- description String
- Optional. User-provided description for this network policy.
- edgeServices 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.
- externalIp NetworkService Response 
- Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_accessis also enabled.
- internetAccess 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.
- updateTime String
- Last update time of this resource.
- vmwareEngine 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.
- vmwareEngine StringNetwork Canonical 
- The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
- createTime string
- Creation time of this resource.
- description string
- Optional. User-provided description for this network policy.
- edgeServices 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.
- externalIp NetworkService Response 
- Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_accessis also enabled.
- internetAccess 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.
- updateTime string
- Last update time of this resource.
- vmwareEngine 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.
- vmwareEngine 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_accessis 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}
- createTime String
- Creation time of this resource.
- description String
- Optional. User-provided description for this network policy.
- edgeServices 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.
- externalIp Property Map
- Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_accessis also enabled.
- internetAccess 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.
- updateTime String
- Last update time of this resource.
- vmwareEngine 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.
- vmwareEngine 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