Stay organized with collectionsSave and categorize content based on your preferences.
Provisions resources for given tenant project. Returns a long running operation.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{location}:initialize
Path parameters
Parameters
location
string
Required. The location to be initialized Format: projects/{projectNumber}/locations/{location}. It takes the formprojects/{project}/locations/{location}.
Request body
The request body contains data with the following structure:
Required. The access control mode for accessing the customer data
kmsKey
string
Optional. The KMS key used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kmsKey is left empty, no encryption will be enforced.
[[["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-05-08 UTC."],[[["\u003cp\u003eThis endpoint initializes resources for a tenant project, returning a long-running operation upon success.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the \u003ccode\u003elocation\u003c/code\u003e in the path, formatted as \u003ccode\u003eprojects/{projectNumber}/locations/{location}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the \u003ccode\u003edatabaseType\u003c/code\u003e and \u003ccode\u003eaccessControlMode\u003c/code\u003e, and it may also include optional fields like \u003ccode\u003ekmsKey\u003c/code\u003e, \u003ccode\u003edocumentCreatorDefaultRole\u003c/code\u003e, and \u003ccode\u003eenableCalUserEmailLogging\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo successfully call this endpoint, you need the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003econtentwarehouse.locations.initialize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edocumentCreatorDefaultRole\u003c/code\u003e can be one of: \u003ccode\u003eDOCUMENT_CREATOR_DEFAULT_ROLE_UNSPECIFIED\u003c/code\u003e, \u003ccode\u003eDOCUMENT_ADMIN\u003c/code\u003e, \u003ccode\u003eDOCUMENT_EDITOR\u003c/code\u003e, or \u003ccode\u003eDOCUMENT_VIEWER\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.initialize\n\nProvisions resources for given tenant project. Returns a long running operation.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{location}:initialize`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/document-warehouse/docs/reference/rest/v1/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `location` resource:\n\n- `contentwarehouse.locations.initialize`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nDocumentCreatorDefaultRole\n--------------------------\n\nThe default role of the document creator."]]