# REST Resource: projects.locations.endpointAttachments

- [Resource: EndpointAttachment](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#EndpointAttachment)
  - [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#EndpointAttachment.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#State)
- [Methods](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#METHODS_SUMMARY)

## Resource: EndpointAttachment

represents the Connector's Endpoint Attachment resource

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "description": string, "serviceAttachment": string, "endpointIp": string, "endpointGlobalAccess": boolean, "state": enum (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Resource name of the Endpoint Attachment. Format: projects/{project}/locations/{location}/endpointAttachments/{endpointAttachment} |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Created time. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Updated time. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. <https://cloud.google.com/compute/docs/labeling-resources> An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `description` | `string` Optional. Description of the resource. |
| `serviceAttachment` | `string` Required. The path of the service attachment |
| `endpointIp` | `string` Output only. The Private Service Connect connection endpoint ip |
| `endpointGlobalAccess` | `boolean` Optional. The Private Service Connect Connection Endpoint Global Access. <https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access> |
| `state` | ``enum (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments#State`)`` Output only. The Private Service Connect Connection Endpoint State. This value is only available in the Full view. |

## State

Enum for the Endpoint Attachment State.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | STATE_UNSPECIFIED. |
| `PENDING` | The endpoint is pending acceptance by the producer. |
| `ACCEPTED` | The endpoint has been accepted by the producer. |
| `REJECTED` | The endpoint has been rejected by the producer. |
| `CLOSED` | The endpoint has been closed by the producer and will not serve traffic going forward. |
| `FROZEN` | The endpoint has been frozen by the producer and will not serve traffic. |
| `NEEDS_ATTENTION` | The endpoint has been accepted by the producer, but it is not ready to serve the traffic due to producer side issues. |
| `ACCEPTED_NOT_PROGRAMMED` | The endpoint has been accepted by the producer, but it cannot be programmed to the data plane due to invariant violation. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments/create` | Creates a new EndpointAttachment in a given project and location. |
| ### `https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments/delete` | Deletes a single EndpointAttachment. |
| ### `https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments/get` | Gets details of a single EndpointAttachment. |
| ### `https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments/list` | List EndpointAttachments in a given project |
| ### `https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.endpointAttachments/patch` | Updates the parameters of a single EndpointAttachment. |