Required. The resource name of the serviceConfig used to initialize the service. Format: projects/{projectId}/locations/{location}/serviceConfig.
Request body
The request body contains data with the following structure:
JSON representation
{"resourceType": string,"requestId": string,// Union field initialization_config can be only one of the following:"cloudSqlInstanceInitializationConfig": {object (CloudSqlInstanceInitializationConfig)}// End of list of possible types for union field initialization_config.}
Fields
resourceType
string
Required. The resource type to which the default service config will be applied. Examples include, "compute.googleapis.com/Instance" and "storage.googleapis.com/Bucket".
requestId
string
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Union field initialization_config. The configuration for initializing the resource. initialization_config can be only one of the following:
[[["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-07-08 UTC."],[[["\u003cp\u003eThis API endpoint initializes the service configuration for a project, using a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the URL path is required and represents the resource name of the \u003ccode\u003eserviceConfig\u003c/code\u003e, following the format \u003ccode\u003eprojects/{projectId}/locations/{location}/serviceConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003eresourceType\u003c/code\u003e field, indicating the type of resource to which the service config will apply, such as \u003ccode\u003e"compute.googleapis.com/Instance"\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003erequestId\u003c/code\u003e can be included in the request body to prevent accidental duplicate operations, and needs to be a valid non-zero UUID.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an \u003ccode\u003eOperation\u003c/code\u003e instance in the response body, and authorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.serviceConfig.initialize\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [CloudSqlInstanceInitializationConfig](#CloudSqlInstanceInitializationConfig)\n - [JSON representation](#CloudSqlInstanceInitializationConfig.SCHEMA_REPRESENTATION)\n- [Edition](#Edition)\n- [Try it!](#try-it)\n\nInitializes the service related config for a project.\n\n### HTTP request\n\n`POST https://backupdr.googleapis.com/v1/{name=projects/*/locations/*/serviceConfig}:initialize`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\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](/backup-disaster-recovery/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](/docs/authentication#authorization-gcp).\n\nCloudSqlInstanceInitializationConfig\n------------------------------------\n\nCloudSqlInstanceInitializationConfig contains the configuration for initializing a Cloud SQL instance.\n\nEdition\n-------\n\nThe edition of the Cloud SQL instance. For details, see \u003chttps://cloud.google.com/sql/docs/editions-intro\u003e."]]