Skip to content

Get Repository Sync Status

proton_get_repository_sync_status R Documentation

Get the sync status of a repository used for Proton template sync

Description

Get the sync status of a repository used for Proton template sync. For more information about template sync, see .

A repository sync status isn't tied to the Proton Repository resource (or any other Proton resource). Therefore, tags on an Proton Repository resource have no effect on this action. Specifically, you can't use these tags to control access to this action using Attribute-based access control (ABAC).

For more information about ABAC, see ABAC in the Proton User Guide.

Usage

proton_get_repository_sync_status(branch, repositoryName,
  repositoryProvider, syncType)

Arguments

branch

[required] The repository branch.

repositoryName

[required] The repository name.

repositoryProvider

[required] The repository provider.

syncType

[required] The repository sync type.

Value

A list with the following syntax:

list(
  latestSync = list(
    events = list(
      list(
        event = "string",
        externalId = "string",
        time = as.POSIXct(
          "2015-01-01"
        ),
        type = "string"
      )
    ),
    startedAt = as.POSIXct(
      "2015-01-01"
    ),
    status = "INITIATED"|"IN_PROGRESS"|"SUCCEEDED"|"FAILED"|"QUEUED"
  )
)

Request syntax

svc$get_repository_sync_status(
  branch = "string",
  repositoryName = "string",
  repositoryProvider = "GITHUB"|"GITHUB_ENTERPRISE"|"BITBUCKET",
  syncType = "TEMPLATE_SYNC"|"SERVICE_SYNC"
)