---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/networkPolicies/{networkPoliciesId}:fetchExternalAddresses"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/networkPolicies/{networkPoliciesId}:fetchExternalAddresses"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/networkPolicies/{networkPoliciesId}:fetchExternalAddresses

`GET /v1/projects/{projectsId}/locations/{locationsId}/networkPolicies/{networkPoliciesId}:fetchExternalAddresses`

## Request

- Base URL: `https://vmwareengine.googleapis.com`
- URL: `https://vmwareengine.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/networkPolicies/{networkPoliciesId}:fetchExternalAddresses`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `networkPoliciesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- FetchNetworkPolicyExternalAddressesResponse: Response message for VmwareEngine.FetchNetworkPolicyExternalAddresses
  - `externalAddresses` ExternalAddress[]: A list of external IP addresses assigned to VMware workload VMs within the scope of the given network policy.
    - `createTime` string, google-datetime: Output only. Creation time of this resource.
    - `description` string: User-provided description for this resource.
    - `externalIp` string: Output only. The external IP address of a workload VM.
    - `internalIp` string: The internal IP address of a workload VM.
    - `name` string: Output only. Identifier. The resource name of this external IP address. 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-a/privateClouds/my-cloud/externalAddresses/my-address`
    - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'CREATING' | 'UPDATING' | 'DELETING': Output only. The state of the resource.
    - `uid` string: Output only. System-generated unique identifier for the resource.
    - `updateTime` string, google-datetime: Output only. Last update time of this resource.
  - `nextPageToken` string: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) - [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmwareengine/revisions/fe35a276b8e1?raw)
