Updating a Google Cloud Project
Use the patch /v1/cckm/google/projects/{id} API to enable or disable audit recording of successful operations for a given Google Cloud project. Use the Google project ID to identify the given project. 
Syntax
curl -k '<IP>/api/v1/cckm/google/projects/{id}' -X PATCH -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n  "enable_success_audit_event": <true|false>\n}' --compressed
Request Parameters
| Parameter | Type | Description | 
|---|---|---|
| AUTHTOKEN | string | Authorization token. | 
| enable_success_audit_event | boolean | Indicates whether audit recording of successful operations for a Google Cloud project is enabled or disabled. This field is optional. Default value is true. | 
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/google/projects/gemalto-kyloeng' -X PATCH -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIxMThkMTNmMS1lYWEzLTQyZmEtOTljMS1kOWVkZmQ3YmYxYzIiLCJzdWIiOiJsb2NhbHxhMGJkZjE5Ny1iYzUzLTQzNDUtOTIwMS0zYWFiMzRlNmI2YmQiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiU3lzdGVtIEFkbWlucyIsIlVzZXIgQWRtaW5zIiwiYWRtaW4iXSwic2lkIjoiNzRhMjE4MTEtM2MwNi00MTEwLTg5YjEtZTZkOWU1NjU4NDIwIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjQzNzQwZDU1LTEzMGUtNGQ2NS1hYTI3LWNhZjRhMzE5OTU3MSIsImlhdCI6MTY4MTE3ODE1NSwiZXhwIjoxNjgxMTc4NDU1fQ.ayewOcYXY9caNF_Ss72HQIpWUvGeS3kDBRWaofWPwhE' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n  "enable_success_audit_event": true\n}' --compressed
Example Response
{
    "id": "208d475f-1799-4ca1-8065-ce02f05243db",
    "uri": "kylo:kylo:cckm:gcp-project:208d475f-1799-4ca1-8065-ce02f05243db",
    "account": "kylo:kylo:admin:accounts:kylo",
    "application": "ncryptify:gemalto:admin:apps:kylo",
    "devAccount": "ncryptify:gemalto:admin:accounts:gemalto",
    "createdAt": "2023-04-10T01:16:58.607872Z",
    "updatedAt": "2023-04-11T01:59:34.619768Z",
    "create_time": "2018-03-19T17:42:03.596Z",
    "lifecycle_state": "ACTIVE",
    "display_name": "Gemalto-kyloeng",
    "name": "gemalto-kyloeng",
    "parent_id": "1035780943344",
    "parent_type": "folder",
    "project_id": "gemalto-kyloeng",
    "project_number": "44178215785",
    "connection": "gcp-connection2",
    "cloud_name": "gcp",
    "organization_name": "organizations/358925527497",
    "organization_display_name": "358925527497",
    "acls": [
        {
            "actions": [
                "cryptospaceview"
            ],
            "user_id": "local|a0bdf197-bc53-4345-9201-3aab34e6b6bd"
        }
    ],
    "enable_success_audit_event": true
}
The output shows that the Google Cloud project with the specified ID is enabled for audit recording of successful operations.
Response Codes
| Response Code | Description | 
|---|---|
| 2xx | Success | 
| 4xx | Client errors | 
| 5xx | Server errors | 
Refer to HTTP status codes for details.