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

# POST /v1/{+location}:checkConsumerConfig

`POST /v1/{+location}:checkConsumerConfig`

CheckConsumerConfig validates the consumer network and project for potential PSC connection creation. This method performs several checks, including: - Validating the existence and permissions of the service class. - Ensuring the consumer network exists and is accessible. - Verifying XPN relationships if applicable. - Checking for compatible IP versions between the consumer network and the requested version. This method performs a dynamic IAM check for the `networkconnectivity.serviceClasses.use` permission on the service class resource in the Prepare phase.

## Path parameters

- `location` string, required

## Request body

- CheckConsumerConfigRequest — Request for CheckConsumerConfig.
  - `serviceClass` string — Required. The service class identifier of the producer.
  - `requestedIpVersion` 'IP_VERSION_UNSPECIFIED' | 'IPV4' | 'IPV6' — The requested IP Version
  - `endpointProject` string — The project number or ID where the PSC endpoint is to be created.
  - `consumerNetwork` string — Required. Full resource name of the consumer network. Example: - projects/{project}/global/networks/{network}.

## Response `200`

Successful response

---

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