---
title: Getting Started with Datadog
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Infrastructure > Datadog Resource Catalog
---

# gcp_clouddeploy_automation{% #gcp_clouddeploy_automation %}

## `ancestors`{% #ancestors %}

**Type**: `UNORDERED_LIST_STRING`

## `annotations`{% #annotations %}

**Type**: `MAP_STRING_STRING`**Provider name**: `annotations`**Description**: Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (`/`). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(`.`), not longer than 253 characters in total, followed by a slash (`/`). See [https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set) for more details.

## `create_time`{% #create_time %}

**Type**: `TIMESTAMP`**Provider name**: `createTime`**Description**: Output only. Time at which the automation was created.

## `description`{% #description %}

**Type**: `STRING`**Provider name**: `description`**Description**: Optional. Description of the `Automation`. Max length is 255 characters.

## `etag`{% #etag %}

**Type**: `STRING`**Provider name**: `etag`**Description**: Optional. The weak etag of the `Automation` resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

## `labels`{% #labels %}

**Type**: `UNORDERED_LIST_STRING`

## `name`{% #name %}

**Type**: `STRING`**Provider name**: `name`**Description**: Output only. Name of the `Automation`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.

## `organization_id`{% #organization_id %}

**Type**: `STRING`

## `parent`{% #parent %}

**Type**: `STRING`

## `project_id`{% #project_id %}

**Type**: `STRING`

## `project_number`{% #project_number %}

**Type**: `STRING`

## `region_id`{% #region_id %}

**Type**: `STRING`

## `resource_name`{% #resource_name %}

**Type**: `STRING`

## `rules`{% #rules %}

**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `rules`**Description**: Required. List of Automation rules associated with the Automation resource. Must have at least one rule and limited to 250 rules per Delivery Pipeline. Note: the order of the rules here is not the same as the order of execution.

- `advance_rollout_rule`**Type**: `STRUCT`**Provider name**: `advanceRolloutRule`**Description**: Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
  - `condition`**Type**: `STRUCT`**Provider name**: `condition`**Description**: Output only. Information around the state of the Automation rule.
    - `targets_present_condition`**Type**: `STRUCT`**Provider name**: `targetsPresentCondition`**Description**: Optional. Details around targets enumerated in the rule.
      - `gcp_status`**Type**: `BOOLEAN`**Provider name**: `status`**Description**: True if there aren't any missing Targets.
      - `missing_targets`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `missingTargets`**Description**: The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
      - `update_time`**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Last time the condition was updated.
    - `timed_promote_release_condition`**Type**: `STRUCT`**Provider name**: `timedPromoteReleaseCondition`**Description**: Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
      - `next_promotion_time`**Type**: `TIMESTAMP`**Provider name**: `nextPromotionTime`**Description**: Output only. When the next scheduled promotion(s) will occur.
      - `targets_list`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `targetsList`**Description**: Output only. A list of targets involved in the upcoming timed promotion(s).
        - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The destination target ID.
        - `source_target_id`**Type**: `STRING`**Provider name**: `sourceTargetId`**Description**: Optional. The source target ID.
  - `id`**Type**: `STRING`**Provider name**: `id`**Description**: Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  - `source_phases`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `sourcePhases`**Description**: Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
  - `wait`**Type**: `STRING`**Provider name**: `wait`**Description**: Optional. How long to wait after a rollout is finished.
- `promote_release_rule`**Type**: `STRUCT`**Provider name**: `promoteReleaseRule`**Description**: Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
  - `condition`**Type**: `STRUCT`**Provider name**: `condition`**Description**: Output only. Information around the state of the Automation rule.
    - `targets_present_condition`**Type**: `STRUCT`**Provider name**: `targetsPresentCondition`**Description**: Optional. Details around targets enumerated in the rule.
      - `gcp_status`**Type**: `BOOLEAN`**Provider name**: `status`**Description**: True if there aren't any missing Targets.
      - `missing_targets`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `missingTargets`**Description**: The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
      - `update_time`**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Last time the condition was updated.
    - `timed_promote_release_condition`**Type**: `STRUCT`**Provider name**: `timedPromoteReleaseCondition`**Description**: Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
      - `next_promotion_time`**Type**: `TIMESTAMP`**Provider name**: `nextPromotionTime`**Description**: Output only. When the next scheduled promotion(s) will occur.
      - `targets_list`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `targetsList`**Description**: Output only. A list of targets involved in the upcoming timed promotion(s).
        - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The destination target ID.
        - `source_target_id`**Type**: `STRING`**Provider name**: `sourceTargetId`**Description**: Optional. The source target ID.
  - `destination_phase`**Type**: `STRING`**Provider name**: `destinationPhase`**Description**: Optional. The starting phase of the rollout created by this operation. Default to the first phase.
  - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
  - `id`**Type**: `STRING`**Provider name**: `id`**Description**: Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  - `wait`**Type**: `STRING`**Provider name**: `wait`**Description**: Optional. How long the release need to be paused until being promoted to the next target.
- `repair_rollout_rule`**Type**: `STRUCT`**Provider name**: `repairRolloutRule`**Description**: Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
  - `condition`**Type**: `STRUCT`**Provider name**: `condition`**Description**: Output only. Information around the state of the 'Automation' rule.
    - `targets_present_condition`**Type**: `STRUCT`**Provider name**: `targetsPresentCondition`**Description**: Optional. Details around targets enumerated in the rule.
      - `gcp_status`**Type**: `BOOLEAN`**Provider name**: `status`**Description**: True if there aren't any missing Targets.
      - `missing_targets`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `missingTargets`**Description**: The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
      - `update_time`**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Last time the condition was updated.
    - `timed_promote_release_condition`**Type**: `STRUCT`**Provider name**: `timedPromoteReleaseCondition`**Description**: Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
      - `next_promotion_time`**Type**: `TIMESTAMP`**Provider name**: `nextPromotionTime`**Description**: Output only. When the next scheduled promotion(s) will occur.
      - `targets_list`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `targetsList`**Description**: Output only. A list of targets involved in the upcoming timed promotion(s).
        - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The destination target ID.
        - `source_target_id`**Type**: `STRING`**Provider name**: `sourceTargetId`**Description**: Optional. The source target ID.
  - `id`**Type**: `STRING`**Provider name**: `id`**Description**: Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  - `jobs`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `jobs`**Description**: Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in `source_phase`. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
  - `phases`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `phases`**Description**: Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
  - `repair_phases`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `repairPhases`**Description**: Required. Defines the types of automatic repair phases for failed jobs.
    - `retry`**Type**: `STRUCT`**Provider name**: `retry`**Description**: Optional. Retries a failed job.
      - `attempts`**Type**: `INT64`**Provider name**: `attempts`**Description**: Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
      - `backoff_mode`**Type**: `STRING`**Provider name**: `backoffMode`**Description**: Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.**Possible values**:
        - `BACKOFF_MODE_UNSPECIFIED` - No WaitMode is specified.
        - `BACKOFF_MODE_LINEAR` - Increases the wait time linearly.
        - `BACKOFF_MODE_EXPONENTIAL` - Increases the wait time exponentially.
      - `wait`**Type**: `STRING`**Provider name**: `wait`**Description**: Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
    - `rollback`**Type**: `STRUCT`**Provider name**: `rollback`**Description**: Optional. Rolls back a `Rollout`.
      - `destination_phase`**Type**: `STRING`**Provider name**: `destinationPhase`**Description**: Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.
      - `disable_rollback_if_rollout_pending`**Type**: `BOOLEAN`**Provider name**: `disableRollbackIfRolloutPending`**Description**: Optional. If pending rollout exists on the target, the rollback operation will be aborted.
- `timed_promote_release_rule`**Type**: `STRUCT`**Provider name**: `timedPromoteReleaseRule`**Description**: Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
  - `condition`**Type**: `STRUCT`**Provider name**: `condition`**Description**: Output only. Information around the state of the Automation rule.
    - `targets_present_condition`**Type**: `STRUCT`**Provider name**: `targetsPresentCondition`**Description**: Optional. Details around targets enumerated in the rule.
      - `gcp_status`**Type**: `BOOLEAN`**Provider name**: `status`**Description**: True if there aren't any missing Targets.
      - `missing_targets`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `missingTargets`**Description**: The list of Target names that do not exist. For example, `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
      - `update_time`**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Last time the condition was updated.
    - `timed_promote_release_condition`**Type**: `STRUCT`**Provider name**: `timedPromoteReleaseCondition`**Description**: Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
      - `next_promotion_time`**Type**: `TIMESTAMP`**Provider name**: `nextPromotionTime`**Description**: Output only. When the next scheduled promotion(s) will occur.
      - `targets_list`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `targetsList`**Description**: Output only. A list of targets involved in the upcoming timed promotion(s).
        - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The destination target ID.
        - `source_target_id`**Type**: `STRING`**Provider name**: `sourceTargetId`**Description**: Optional. The source target ID.
  - `destination_phase`**Type**: `STRING`**Provider name**: `destinationPhase`**Description**: Optional. The starting phase of the rollout created by this rule. Default to the first phase.
  - `destination_target_id`**Type**: `STRING`**Provider name**: `destinationTargetId`**Description**: Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
  - `id`**Type**: `STRING`**Provider name**: `id`**Description**: Required. ID of the rule. This ID must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  - `schedule`**Type**: `STRING`**Provider name**: `schedule`**Description**: Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
  - `time_zone`**Type**: `STRING`**Provider name**: `timeZone`**Description**: Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).

## `selector`{% #selector %}

**Type**: `STRUCT`**Provider name**: `selector`**Description**: Required. Selected resources to which the automation will be applied.

- `targets`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `targets`**Description**: Optional. Contains attributes about a target.
  - `id`**Type**: `STRING`**Provider name**: `id`**Description**: Optional. ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name * "*", all targets in a location

## `service_account`{% #service_account %}

**Type**: `STRING`**Provider name**: `serviceAccount`**Description**: Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.

## `suspended`{% #suspended %}

**Type**: `BOOLEAN`**Provider name**: `suspended`**Description**: Optional. When Suspended, automation is deactivated from execution.

## `tags`{% #tags %}

**Type**: `UNORDERED_LIST_STRING`

## `uid`{% #uid %}

**Type**: `STRING`**Provider name**: `uid`**Description**: Output only. Unique identifier of the `Automation`.

## `update_time`{% #update_time %}

**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Output only. Time at which the automation was updated.

## `zone_id`{% #zone_id %}

**Type**: `STRING`
