Method: projects.provision
Stay organized with collections
Save and categorize content based on your preferences.
Provisions the project resource. During the process, related systems will get prepared and initialized.
Caller must read the Terms for data use, and optionally specify in request to provide consent to that service terms.
HTTP request
POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*}:provision
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Full resource name of a Project , such as projects/{project_id_or_number} .
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"acceptDataUseTerms": boolean,
"dataUseTermsVersion": string
} |
Fields |
acceptDataUseTerms |
boolean
Required. Set to true to specify that caller has read and would like to give consent to the Terms for data use.
|
dataUseTermsVersion |
string
Required. The version of the Terms for data use that caller has read and would like to give consent to. Acceptable version is 2022-11-23 , and this may change over time.
|
Response body
If successful, the response body contains an instance of Operation
.
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 name
resource:
discoveryengine.projects.provision
For more information, see the IAM documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["This page details how to provision a project resource using a `POST` request to `https://discoveryengine.googleapis.com/v1alpha/{name=projects/*}:provision`."],["The request requires specifying the project name in the URL path and includes a request body with boolean data on the acceptance of data use terms."],["Successful requests return an `Operation` instance, while authorization requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."],["To provision, the caller needs to have the `discoveryengine.projects.provision` IAM permission on the specified project resource."],["The caller must read and provide consent to the [Terms for data use](https://cloud.google.com/retail/data-use-terms), including specifying the correct version."]]],[]]