---
title: "POST /v1/{+parent}/serviceProjectAttachments"
method: POST
path: "/v1/{+parent}/serviceProjectAttachments"
tags: ["projects"]
---

# POST /v1/{+parent}/serviceProjectAttachments

`POST /v1/{+parent}/serviceProjectAttachments`

Attaches a service project to the host project.

## Path parameters

- `parent` string, required

## Query parameters

- `requestId` string
- `serviceProjectAttachmentId` string

## Request body

- ServiceProjectAttachment — ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.
  - `uid` string — Output only. A globally unique identifier (in UUID4 format) for the `ServiceProjectAttachment`.
  - `serviceProject` string — Required. Immutable. Service project name in the format: `"projects/abc"` or `"projects/123"`. As input, project name with either project id or number are accepted. As output, this field will contain project number.
  - `name` string — Identifier. The resource name of a ServiceProjectAttachment. Format: `"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."`
  - `createTime` string, google-datetime — Output only. Create time.
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'DELETING' — Output only. ServiceProjectAttachment state.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/apphub.md) · [All operations](https://skmtc.net/google/apis/apphub/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/apphub/versions/7d1f12f41572/schema)
