---
title: "POST /projects/{project}/disableXpnResource"
method: POST
path: "/projects/{project}/disableXpnResource"
tags: ["projects"]
---

# POST /projects/{project}/disableXpnResource

`POST /projects/{project}/disableXpnResource`

Disable a service resource (also known as service project) associated with
this host project.

## Path parameters

- `project` string, required

## Query parameters

- `requestId` string

## Request body

- ProjectsDisableXpnResourceRequest
  - `xpnResource` XpnResourceId — Service resource (a.k.a service project) ID.
    - `id` string — The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).
    - `type` 'PROJECT' | 'XPN_RESOURCE_TYPE_UNSPECIFIED' — The type of the service resource.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/compute.md) · [All operations](https://skmtc.net/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/compute/revisions/6120ed8969d4/schema)
