---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/goldengateDeployments/{goldengateDeploymentsId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/goldengateDeployments/{goldengateDeploymentsId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/goldengateDeployments/{goldengateDeploymentsId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/goldengateDeployments/{goldengateDeploymentsId}`

## Request

- Base URL: `https://oracledatabase.googleapis.com`
- URL: `https://oracledatabase.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/goldengateDeployments/{goldengateDeploymentsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Updates the `labels` of a single GoldengateDeployment.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `goldengateDeploymentsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `requestId` string
- `updateMask` string, google-fieldmask

## Request body

- GoldengateDeployment: GoldengateDeployment Goldengate Deployment resource model.
  - `createTime` string, google-datetime: Output only. The date and time that the GoldengateDeployment was created.
  - `displayName` string: Required. Immutable. The display name for the GoldengateDeployment.
  - `entitlementId` string: Output only. The ID of the subscription entitlement associated with the GoldengateDeployment
  - `gcpOracleZone` string: Optional. Immutable. The GCP Oracle zone where Oracle GoldengateDeployment is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.
  - `labels` object: Optional. The labels or tags associated with the GoldengateDeployment.
  - `name` string: Identifier. The name of the GoldengateDeployment resource in the following format: projects/{project}/locations/{region}/goldengateDeployments/{goldengate_deployment}
  - `ociUrl` string: Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.
  - `odbNetwork` string: Optional. Immutable. The name of the OdbNetwork associated with the GoldengateDeployment.
  - `odbSubnet` string: Required. Immutable. The name of the OdbSubnet associated with the GoldengateDeployment for IP allocation.
  - `properties` GoldengateDeploymentProperties: Properties of GoldengateDeployment.
    - `backupSchedule` GoldengateBackupSchedule: The backup schedule of the GoldengateDeployment.
      - `backupScheduledTime` string, google-datetime: Output only. The timestamp of when the backup was scheduled.
      - `bucket` string: Output only. The bucket name.
      - `compartmentId` string: Output only. The compartment id.
      - `frequencyBackupScheduled` 'FREQUENCY_BACKUP_SCHEDULED_UNSPECIFIED' | 'DAILY' | 'WEEKLY' | 'MONTHLY': Output only. The frequency backup scheduled.
      - `metadataOnly` boolean: Output only. If metadata only.
      - `namespace` string: Output only. The namespace name.
    - `category` 'GOLDENGATE_DEPLOYMENT_CATEGORY_UNSPECIFIED' | 'DATA_REPLICATION' | 'DATA_TRANSFORMS': Output only. The category of the GoldengateDeployment.
    - `cpuCoreCount` integer: Optional. The Minimum number of OCPUs to be made available for this Deployment.
    - `deploymentBackupId` string: Output only. The deployment backup id of the GoldengateDeployment.
    - `deploymentDiagnosticData` DeploymentDiagnosticData: The deployment diagnostic data.
      - `bucket` string: Output only. The bucket name.
      - `diagnosticEndTime` string, google-datetime: Output only. The time diagnostic end.
      - `diagnosticStartTime` string, google-datetime: Output only. The time diagnostic start.
      - `diagnosticState` 'DIAGNOSTIC_STATE_UNSPECIFIED' | 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED': Output only. The diagnostic state.
      - `namespace` string: Output only. The namespace name.
      - `object` string: Output only. The object name.
    - `deploymentRole` 'GOLDENGATE_DEPLOYMENT_ROLE_TYPE_UNSPECIFIED' | 'PRIMARY' | 'STANDBY': Output only. The deployment role of the GoldengateDeployment.
    - `deploymentType` string: Required. A valid Goldengate Deployment type. For a list of supported types, use the `ListGoldengateDeploymentTypes` operation.
    - `deploymentUrl` string: Output only. The deployment url of the GoldengateDeployment.
    - `description` string: Optional. The description of the GoldengateDeployment.
    - `environmentType` string: Optional. The environment type of the GoldengateDeployment.
    - `fqdn` string: Output only. The Fully Qualified Domain Name of the GoldengateDeployment.
    - `healthy` boolean: Output only. Whether the GoldengateDeployment is healthy.
    - `ingressIps` IngressIp[]: Output only. The ingress ips of the GoldengateDeployment.
      - `ingressIpAddress` string: Output only. The ingress IP.
    - `isAutoScalingEnabled` boolean: Optional. Indicates if auto scaling is enabled for the Deployment's CPU core count.
    - `isLatestVersion` boolean: Output only. Whether the GoldengateDeployment is of the latest version.
    - `isPublic` boolean: Output only. Whether the GoldengateDeployment is public.
    - `isStorageUtilizationLimitExceeded` boolean: Output only. Whether storage utilization limit is exceeded of the GoldengateDeployment.
    - `lastBackupScheduleTime` string, google-datetime: Output only. The time last backup scheduled of the GoldengateDeployment.
    - `licenseModel` 'LICENSE_MODEL_UNSPECIFIED' | 'LICENSE_INCLUDED' | 'BRING_YOUR_OWN_LICENSE': Optional. The Oracle license model that applies to a Deployment.
    - `lifecycleDetails` string: Output only. The lifecycle details of the GoldengateDeployment.
    - `lifecycleState` 'GOLDENGATE_DEPLOYMENT_LIFECYCLE_STATE_UNSPECIFIED' | 'CREATING' | 'UPDATING' | 'ACTIVE' | 'INACTIVE' | 'DELETING' | 'DELETED' | 'FAILED' | 'NEEDS_ATTENTION' | 'IN_PROGRESS' | 'CANCELLING' | 'CANCELLED' | 'SUCCEEDED' | 'WAITING': Output only. State of the GoldengateDeployment.
    - `lifecycleSubState` 'GOLDENGATE_DEPLOYMENT_LIFECYCLE_SUB_STATE_UNSPECIFIED' | 'RECOVERING' | 'STARTING' | 'STOPPING' | 'MOVING' | 'UPGRADING' | 'RESTORING' | 'BACKING_UP' | 'ROLLING_BACK': Output only. The lifecycle sub-state of the GoldengateDeployment.
    - `loadBalancerId` string: Output only. The load balancer id of the GoldengateDeployment.
    - `loadBalancerSubnetId` string: Output only. The load balancer subnet id of the GoldengateDeployment.
    - `locks` GoldengateDeploymentLock[]: Output only. The locks of the GoldengateDeployment.
      - `compartmentId` string: Output only. The compartment id.
      - `createTime` string, google-datetime: Output only. The time created.
      - `message` string: Output only. The message.
      - `relatedResourceId` string: Output only. The related resource id.
      - `type` 'LOCK_TYPE_UNSPECIFIED' | 'FULL' | 'DELETE': Output only. The type of lock.
    - `maintenanceConfig` GoldengateMaintenanceConfig: The maintenance configuration of the GoldengateDeployment.
      - `bundleReleaseUpgradePeriodDays` integer: Optional. Defines auto upgrade period for bundle releases. Manually configured period cannot be longer than service defined period for bundle releases. This period must be shorter or equal to major release upgrade period. Not passing this field during create will equate to using the service default.
      - `interimReleaseUpgradePeriodDays` integer: Optional. Defines auto upgrade period for interim releases. This period must be shorter or equal to bundle release upgrade period.
      - `isInterimReleaseAutoUpgradeEnabled` boolean: Optional. By default auto upgrade for interim releases are not enabled. If auto-upgrade is enabled for interim release, you have to specify interim_release_upgrade_period_days too.
      - `majorReleaseUpgradePeriodDays` integer: Optional. Defines auto upgrade period for major releases. Manually configured period cannot be longer than service defined period for major releases. Not passing this field during create will equate to using the service default.
      - `securityPatchUpgradePeriodDays` integer: Optional. Defines auto upgrade period for releases with security fix. Manually configured period cannot be longer than service defined period for security releases. Not passing this field during create will equate to using the service default.
    - `maintenanceWindow` GoldengateMaintenanceWindow: The maintenance window of the GoldengateDeployment.
      - `day` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY': Required. Days of the week.
      - `startHour` integer: Required. Start hour for maintenance period. Hour is in UTC.
    - `nextBackupScheduleTime` string, google-datetime: Output only. The time next backup scheduled of the GoldengateDeployment.
    - `nextMaintenanceActionType` 'NEXT_MAINTENANCE_ACTION_TYPE_UNSPECIFIED' | 'UPGRADE': Output only. The next maintenance action type of the GoldengateDeployment.
    - `nextMaintenanceDescription` string: Output only. The next maintenance description of the GoldengateDeployment.
    - `nextMaintenanceTime` string, google-datetime: Output only. The time of next maintenance of the GoldengateDeployment.
    - `nsgIds` string[]: Output only. The nsg ids of the GoldengateDeployment.
    - `ocid` string: Output only. OCID of the GoldengateDeployment.
    - `oggData` GoldengateOggDeployment: The Ogg data of the GoldengateDeployment.
      - `adminPassword` string: Optional. Input only. The Goldengate deployment console password in plain text.
      - `adminPasswordSecretVersion` string: Optional. Input only. The Goldengate deployment console password secret version.
      - `adminUsername` string: Required. The Goldengate deployment console username.
      - `certificate` string: Output only. The certificate of the GoldengateDeployment.
      - `credentialStore` 'CREDENTIAL_STORE_UNSPECIFIED' | 'GOLDENGATE' | 'IAM': Output only. The credential store of the GoldengateDeployment.
      - `deployment` string: Required. The name given to the Goldengate service deployment. The name must be 1 to 32 characters long, must contain only alphanumeric characters and must start with a letter.
      - `groupRolesMapping` GoldengateGroupToRolesMapping: The group to roles mapping of the GoldengateDeployment.
        - `administratorGroupId` string: Output only. The administrator group id.
        - `operatorGroupId` string: Output only. The operator group id.
        - `securityGroupId` string: Output only. The security group id.
        - `userGroupId` string: Output only. The user group id.
      - `identityDomainId` string: Output only. The identity domain id of the GoldengateDeployment.
      - `oggVersion` string: Optional. Version of OGG
      - `passwordSecretId` string: Output only. The password secret id of the GoldengateDeployment.
    - `oggVersionSupportEndTime` string, google-datetime: Output only. The time ogg version supported until of the GoldengateDeployment.
    - `placements` GoldengatePlacement[]: Output only. The placements of the GoldengateDeployment.
      - `availabilityDomain` string: Output only. The availability domain.
      - `faultDomain` string: Output only. The fault domain.
    - `privateIpAddress` string: Output only. The private ip address of the GoldengateDeployment.
    - `publicIpAddress` string: Output only. The public ip address of the GoldengateDeployment.
    - `roleChangeTime` string, google-datetime: Output only. The time when the role of the GoldengateDeployment was changed.
    - `storageUtilizationBytes` string, int64: Output only. The storage utilization in bytes of the GoldengateDeployment.
    - `updateTime` string, google-datetime: Output only. The time the GoldengateDeployment was updated.
    - `upgradeRequiredTime` string, google-datetime: Output only. The time upgrade required of the GoldengateDeployment.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/oracledatabase.md) - [All operations](https://skmtc.dev/google/apis/oracledatabase/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/oracledatabase/revisions/215e9c1e9c3f?raw)
