Method: projects.locations.collections.dataStores.servingConfigs.create

Creates a ServingConfig.

Note: GCP Console UI works only with the default serving config. Additional ServingConfigs can be created and managed only via the API.

A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.

HTTP request

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Full resource name of parent. Format: projects/{projectNumber}/locations/{location}/collections/{collection}/engines/{engine}

Query parameters

Parameters
servingConfigId

string

Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name.

This value should be 4-63 characters, and valid characters are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.

Request body

The request body contains an instance of ServingConfig.

Response body

If successful, the response body contains a newly created instance of ServingConfig.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • discoveryengine.servingConfigs.create

For more information, see the IAM documentation.