1. Packages
  2. Google Cloud Native
  3. API Docs
  4. vmwareengine
  5. vmwareengine/v1
  6. getNetworkPolicy

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-native logo

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
    NetworkPolicyId string
    Project string
    Location string
    NetworkPolicyId string
    Project string
    location String
    networkPolicyId String
    project String
    location string
    networkPolicyId string
    project string
    location String
    networkPolicyId String
    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.
    EdgeServicesCidr string
    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.GoogleNative.VMwareEngine.V1.Outputs.NetworkServiceResponse
    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.
    InternetAccess Pulumi.GoogleNative.VMwareEngine.V1.Outputs.NetworkServiceResponse
    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.
    VmwareEngineNetwork string
    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.
    VmwareEngineNetworkCanonical string
    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.
    EdgeServicesCidr string
    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 NetworkServiceResponse
    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.
    InternetAccess NetworkServiceResponse
    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.
    VmwareEngineNetwork string
    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.
    VmwareEngineNetworkCanonical string
    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.
    edgeServicesCidr String
    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 NetworkServiceResponse
    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.
    internetAccess NetworkServiceResponse
    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.
    vmwareEngineNetwork String
    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.
    vmwareEngineNetworkCanonical String
    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.
    edgeServicesCidr string
    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 NetworkServiceResponse
    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.
    internetAccess NetworkServiceResponse
    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.
    vmwareEngineNetwork string
    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.
    vmwareEngineNetworkCanonical string
    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_cidr str
    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 NetworkServiceResponse
    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 NetworkServiceResponse
    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_network str
    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_network_canonical str
    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.
    edgeServicesCidr String
    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_access is 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.
    vmwareEngineNetwork String
    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.
    vmwareEngineNetworkCanonical String
    The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

    Supporting Types

    NetworkServiceResponse

    Enabled bool
    True if the service is enabled; false otherwise.
    State string
    State of the service. New values may be added to this enum when appropriate.
    Enabled bool
    True if the service is enabled; false otherwise.
    State string
    State of the service. New values may be added to this enum when appropriate.
    enabled Boolean
    True if the service is enabled; false otherwise.
    state String
    State of the service. New values may be added to this enum when appropriate.
    enabled boolean
    True if the service is enabled; false otherwise.
    state string
    State of the service. New values may be added to this enum when appropriate.
    enabled bool
    True if the service is enabled; false otherwise.
    state str
    State of the service. New values may be added to this enum when appropriate.
    enabled Boolean
    True if the service is enabled; false otherwise.
    state String
    State of the service. New values may be added to this enum when appropriate.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    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