Skip to content

Latest commit

 

History

History
1907 lines (1230 loc) · 84.9 KB

PipelinesApi.md

File metadata and controls

1907 lines (1230 loc) · 84.9 KB

{{classname}}

All URIs are relative to https://api.bitbucket.org/2.0

Method HTTP request Description
CreateDeploymentVariable Post /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables Create a variable for an environment
CreatePipelineForRepository Post /repositories/{workspace}/{repo_slug}/pipelines Run a pipeline
CreatePipelineVariableForTeam Post /teams/{username}/pipelines_config/variables Create a variable for a user
CreatePipelineVariableForUser Post /users/{selected_user}/pipelines_config/variables Create a variable for a user
CreatePipelineVariableForWorkspace Post /workspaces/{workspace}/pipelines-config/variables Create a variable for a workspace
CreateRepositoryPipelineKnownHost Post /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts Create a known host
CreateRepositoryPipelineSchedule Post /repositories/{workspace}/{repo_slug}/pipelines_config/schedules Create a schedule
CreateRepositoryPipelineVariable Post /repositories/{workspace}/{repo_slug}/pipelines_config/variables Create a variable for a repository
DeleteDeploymentVariable Delete /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid} Delete a variable for an environment
DeletePipelineVariableForTeam Delete /teams/{username}/pipelines_config/variables/{variable_uuid} Delete a variable for a team
DeletePipelineVariableForUser Delete /users/{selected_user}/pipelines_config/variables/{variable_uuid} Delete a variable for a user
DeletePipelineVariableForWorkspace Delete /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Delete a variable for a workspace
DeleteRepositoryPipelineCache Delete /repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid} Delete a cache
DeleteRepositoryPipelineCaches Delete /repositories/{workspace}/{repo_slug}/pipelines-config/caches Delete caches
DeleteRepositoryPipelineKeyPair Delete /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Delete SSH key pair
DeleteRepositoryPipelineKnownHost Delete /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Delete a known host
DeleteRepositoryPipelineSchedule Delete /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Delete a schedule
DeleteRepositoryPipelineVariable Delete /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Delete a variable for a repository
GetDeploymentVariables Get /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables List variables for an environment
GetOIDCConfiguration Get /workspaces/{workspace}/pipelines-config/identity/oidc/.well-known/openid-configuration Get OpenID configuration for OIDC in Pipelines
GetOIDCKeys Get /workspaces/{workspace}/pipelines-config/identity/oidc/keys.json Get keys for OIDC in Pipelines
GetPipelineContainerLog Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/logs/{log_uuid} Get the logs for the build container or a service container for a given step of a pipeline.
GetPipelineForRepository Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid} Get a pipeline
GetPipelineStepForRepository Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid} Get a step of a pipeline
GetPipelineStepLogForRepository Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log Get log file for a step
GetPipelineStepsForRepository Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps List steps for a pipeline
GetPipelineTestReportTestCaseReasons Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases/{test_case_uuid}/test_case_reasons Get test case reasons (output) for a given test case in a step of a pipeline.
GetPipelineTestReportTestCases Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports/test_cases Get test cases for a given step of a pipeline.
GetPipelineTestReports Get /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/test_reports Get a summary of test reports for a given step of a pipeline.
GetPipelineVariableForTeam Get /teams/{username}/pipelines_config/variables/{variable_uuid} Get a variable for a team
GetPipelineVariableForUser Get /users/{selected_user}/pipelines_config/variables/{variable_uuid} Get a variable for a user
GetPipelineVariableForWorkspace Get /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Get variable for a workspace
GetPipelineVariablesForTeam Get /teams/{username}/pipelines_config/variables List variables for an account
GetPipelineVariablesForUser Get /users/{selected_user}/pipelines_config/variables List variables for a user
GetPipelineVariablesForWorkspace Get /workspaces/{workspace}/pipelines-config/variables List variables for a workspace
GetPipelinesForRepository Get /repositories/{workspace}/{repo_slug}/pipelines List pipelines
GetRepositoryPipelineCacheContentURI Get /repositories/{workspace}/{repo_slug}/pipelines-config/caches/{cache_uuid}/content-uri Get cache content URI
GetRepositoryPipelineCaches Get /repositories/{workspace}/{repo_slug}/pipelines-config/caches List caches
GetRepositoryPipelineConfig Get /repositories/{workspace}/{repo_slug}/pipelines_config Get configuration
GetRepositoryPipelineKnownHost Get /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Get a known host
GetRepositoryPipelineKnownHosts Get /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts List known hosts
GetRepositoryPipelineSchedule Get /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Get a schedule
GetRepositoryPipelineScheduleExecutions Get /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}/executions List executions of a schedule
GetRepositoryPipelineSchedules Get /repositories/{workspace}/{repo_slug}/pipelines_config/schedules List schedules
GetRepositoryPipelineSshKeyPair Get /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Get SSH key pair
GetRepositoryPipelineVariable Get /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Get a variable for a repository
GetRepositoryPipelineVariables Get /repositories/{workspace}/{repo_slug}/pipelines_config/variables List variables for a repository
StopPipeline Post /repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline Stop a pipeline
UpdateDeploymentVariable Put /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid} Update a variable for an environment
UpdatePipelineVariableForTeam Put /teams/{username}/pipelines_config/variables/{variable_uuid} Update a variable for a team
UpdatePipelineVariableForUser Put /users/{selected_user}/pipelines_config/variables/{variable_uuid} Update a variable for a user
UpdatePipelineVariableForWorkspace Put /workspaces/{workspace}/pipelines-config/variables/{variable_uuid} Update variable for a workspace
UpdateRepositoryBuildNumber Put /repositories/{workspace}/{repo_slug}/pipelines_config/build_number Update the next build number
UpdateRepositoryPipelineConfig Put /repositories/{workspace}/{repo_slug}/pipelines_config Update configuration
UpdateRepositoryPipelineKeyPair Put /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair Update SSH key pair
UpdateRepositoryPipelineKnownHost Put /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} Update a known host
UpdateRepositoryPipelineSchedule Put /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} Update a schedule
UpdateRepositoryPipelineVariable Put /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid} Update a variable for a repository

CreateDeploymentVariable

DeploymentVariable CreateDeploymentVariable(ctx, body, workspace, repoSlug, environmentUuid) Create a variable for an environment

Create a deployment environment level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body DeploymentVariable The variable to create
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
environmentUuid string The environment.

Return type

DeploymentVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreatePipelineForRepository

Pipeline CreatePipelineForRepository(ctx, body, workspace, repoSlug) Run a pipeline

Endpoint to create and initiate a pipeline. There are a couple of different options to initiate a pipeline, where the payload of the request will determine which type of pipeline will be instantiated. # Trigger a Pipeline for a branch One way to trigger pipelines is by specifying the branch for which you want to trigger a pipeline. The specified branch will be used to determine which pipeline definition from the bitbucket-pipelines.yml file will be applied to initiate the pipeline. The pipeline will then do a clone of the repository and checkout the latest revision of the specified branch. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"ref_type\": \"branch\", \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\" } }' # Trigger a Pipeline for a commit on a branch or tag You can initiate a pipeline for a specific commit and in the context of a specified reference (e.g. a branch, tag or bookmark). The specified reference will be used to determine which pipeline definition from the bitbucket-pipelines.yml file will be applied to initiate the pipeline. The pipeline will clone the repository and then do a checkout the specified reference. The following reference types are supported: * branch * named_branch * bookmark * tag ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"type\": \"commit\", \"hash\": \"ce5b7431602f7cbba007062eeb55225c6e18e956\" }, \"ref_type\": \"branch\", \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\" } }' # Trigger a specific pipeline definition for a commit You can trigger a specific pipeline that is defined in your bitbucket-pipelines.yml file for a specific commit. In addition to the commit revision, you specify the type and pattern of the selector that identifies the pipeline definition. The resulting pipeline will then clone the repository and checkout the specified revision. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"hash\":\"a3c4e02c9a3755eccdc3764e6ea13facdf30f923\", \"type\":\"commit\" }, \"selector\": { \"type\":\"custom\", \"pattern\":\"Deploy to production\" }, \"type\":\"pipeline_commit_target\" } }' # Trigger a specific pipeline definition for a commit on a branch or tag You can trigger a specific pipeline that is defined in your bitbucket-pipelines.yml file for a specific commit in the context of a specified reference. In addition to the commit revision, you specify the type and pattern of the selector that identifies the pipeline definition, as well as the reference information. The resulting pipeline will then clone the repository a checkout the specified reference. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/jeroendr/meat-demo2/pipelines/ \\ -d ' { \"target\": { \"commit\": { \"hash\":\"a3c4e02c9a3755eccdc3764e6ea13facdf30f923\", \"type\":\"commit\" }, \"selector\": { \"type\": \"custom\", \"pattern\": \"Deploy to production\" }, \"type\": \"pipeline_ref_target\", \"ref_name\": \"master\", \"ref_type\": \"branch\" } }' # Trigger a custom pipeline with variables In addition to triggering a custom pipeline that is defined in your bitbucket-pipelines.yml file as shown in the examples above, you can specify variables that will be available for your build. In the request, provide a list of variables, specifying the following for each variable: key, value, and whether it should be secured or not (this field is optional and defaults to not secured). ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/ \\ -d ' { \"target\": { \"type\": \"pipeline_ref_target\", \"ref_type\": \"branch\", \"ref_name\": \"master\", \"selector\": { \"type\": \"custom\", \"pattern\": \"Deploy to production\" } }, \"variables\": [ { \"key\": \"var1key\", \"value\": \"var1value\", \"secured\": true }, { \"key\": \"var2key\", \"value\": \"var2value\" } ] }' # Trigger a pull request pipeline You can also initiate a pipeline for a specific pull request. ### Example $ curl -X POST -is -u username:password \\ -H 'Content-Type: application/json' \\ https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/ \\ -d ' { \"target\": { \"type\": \"pipeline_pullrequest_target\", \"source\": \"pull-request-branch\", \"destination\": \"master\", \"destination_commit\": { \"hash\" : \"9f848b7\" }, \"commit\": { \"hash\" : \"1a372fc\" }, \"pullrequest\" : { \"id\" : \"3\" }, \"selector\": { \"type\": \"pull-requests\", \"pattern\": \"**\" } } }'

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body Pipeline The pipeline to initiate.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

Pipeline

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreatePipelineVariableForTeam

PipelineVariable CreatePipelineVariableForTeam(ctx, username, optional) Create a variable for a user

Create an account level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string The account.
optional *PipelinesApiCreatePipelineVariableForTeamOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiCreatePipelineVariableForTeamOpts struct

Name Type Description Notes

body | optional.Interface of PipelineVariable| The variable to create. |

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreatePipelineVariableForUser

PipelineVariable CreatePipelineVariableForUser(ctx, selectedUser, optional) Create a variable for a user

Create a user level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
selectedUser string Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
optional *PipelinesApiCreatePipelineVariableForUserOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiCreatePipelineVariableForUserOpts struct

Name Type Description Notes

body | optional.Interface of PipelineVariable| The variable to create. |

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreatePipelineVariableForWorkspace

PipelineVariable CreatePipelineVariableForWorkspace(ctx, workspace, optional) Create a variable for a workspace

Create a workspace level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
optional *PipelinesApiCreatePipelineVariableForWorkspaceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiCreatePipelineVariableForWorkspaceOpts struct

Name Type Description Notes

body | optional.Interface of PipelineVariable| The variable to create. |

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateRepositoryPipelineKnownHost

PipelineKnownHost CreateRepositoryPipelineKnownHost(ctx, body, workspace, repoSlug) Create a known host

Create a repository level known host.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineKnownHost The known host to create.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineKnownHost

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateRepositoryPipelineSchedule

PipelineSchedule CreateRepositoryPipelineSchedule(ctx, body, workspace, repoSlug) Create a schedule

Create a schedule for the given repository.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineSchedulePostRequestBody The schedule to create.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineSchedule

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateRepositoryPipelineVariable

PipelineVariable CreateRepositoryPipelineVariable(ctx, body, workspace, repoSlug) Create a variable for a repository

Create a repository level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineVariable The variable to create.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteDeploymentVariable

DeleteDeploymentVariable(ctx, workspace, repoSlug, environmentUuid, variableUuid) Delete a variable for an environment

Delete a deployment environment level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
environmentUuid string The environment.
variableUuid string The UUID of the variable to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeletePipelineVariableForTeam

DeletePipelineVariableForTeam(ctx, username, variableUuid) Delete a variable for a team

Delete a team level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string The account.
variableUuid string The UUID of the variable to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeletePipelineVariableForUser

DeletePipelineVariableForUser(ctx, selectedUser, variableUuid) Delete a variable for a user

Delete an account level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
selectedUser string Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
variableUuid string The UUID of the variable to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeletePipelineVariableForWorkspace

DeletePipelineVariableForWorkspace(ctx, workspace, variableUuid) Delete a variable for a workspace

Delete a workspace level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
variableUuid string The UUID of the variable to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineCache

DeleteRepositoryPipelineCache(ctx, workspace, repoSlug, cacheUuid) Delete a cache

Delete a repository cache.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string The account.
repoSlug string The repository.
cacheUuid string The UUID of the cache to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineCaches

DeleteRepositoryPipelineCaches(ctx, workspace, repoSlug, name) Delete caches

Delete repository cache versions by name.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string The account.
repoSlug string The repository.
name string The cache name.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineKeyPair

DeleteRepositoryPipelineKeyPair(ctx, workspace, repoSlug) Delete SSH key pair

Delete the repository SSH key pair.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineKnownHost

DeleteRepositoryPipelineKnownHost(ctx, workspace, repoSlug, knownHostUuid) Delete a known host

Delete a repository level known host.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
knownHostUuid string The UUID of the known host to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineSchedule

DeleteRepositoryPipelineSchedule(ctx, workspace, repoSlug, scheduleUuid) Delete a schedule

Delete a schedule.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
scheduleUuid string The uuid of the schedule.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteRepositoryPipelineVariable

DeleteRepositoryPipelineVariable(ctx, workspace, repoSlug, variableUuid) Delete a variable for a repository

Delete a repository level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
variableUuid string The UUID of the variable to delete.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetDeploymentVariables

PaginatedDeploymentVariable GetDeploymentVariables(ctx, workspace, repoSlug, environmentUuid, optional) List variables for an environment

Find deployment environment level variables.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
environmentUuid string The environment.
optional *PipelinesApiGetDeploymentVariablesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetDeploymentVariablesOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedDeploymentVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOIDCConfiguration

GetOIDCConfiguration(ctx, workspace) Get OpenID configuration for OIDC in Pipelines

This is part of OpenID Connect for Pipelines, see https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOIDCKeys

GetOIDCKeys(ctx, workspace) Get keys for OIDC in Pipelines

This is part of OpenID Connect for Pipelines, see https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineContainerLog

GetPipelineContainerLog(ctx, workspace, repoSlug, pipelineUuid, stepUuid, logUuid) Get the logs for the build container or a service container for a given step of a pipeline.

Retrieve the log file for a build container or service container. This endpoint supports (and encourages!) the use of HTTP Range requests to deal with potentially very large log files.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.
logUuid string For the main build container specify the step UUID; for a service container specify the service container UUID

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineForRepository

Pipeline GetPipelineForRepository(ctx, workspace, repoSlug, pipelineUuid) Get a pipeline

Retrieve a specified pipeline

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The pipeline UUID.

Return type

Pipeline

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineStepForRepository

PipelineStep GetPipelineStepForRepository(ctx, workspace, repoSlug, pipelineUuid, stepUuid) Get a step of a pipeline

Retrieve a given step of a pipeline.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.

Return type

PipelineStep

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineStepLogForRepository

GetPipelineStepLogForRepository(ctx, workspace, repoSlug, pipelineUuid, stepUuid) Get log file for a step

Retrieve the log file for a given step of a pipeline. This endpoint supports (and encourages!) the use of HTTP Range requests to deal with potentially very large log files.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineStepsForRepository

PaginatedPipelineSteps GetPipelineStepsForRepository(ctx, workspace, repoSlug, pipelineUuid, optional) List steps for a pipeline

Find steps for the given pipeline.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
optional *PipelinesApiGetPipelineStepsForRepositoryOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetPipelineStepsForRepositoryOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineSteps

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineTestReportTestCaseReasons

GetPipelineTestReportTestCaseReasons(ctx, workspace, repoSlug, pipelineUuid, stepUuid, testCaseUuid) Get test case reasons (output) for a given test case in a step of a pipeline.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.
testCaseUuid string The UUID of the test case.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineTestReportTestCases

GetPipelineTestReportTestCases(ctx, workspace, repoSlug, pipelineUuid, stepUuid) Get test cases for a given step of a pipeline.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineTestReports

GetPipelineTestReports(ctx, workspace, repoSlug, pipelineUuid, stepUuid) Get a summary of test reports for a given step of a pipeline.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.
stepUuid string The UUID of the step.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariableForTeam

PipelineVariable GetPipelineVariableForTeam(ctx, username, variableUuid) Get a variable for a team

Retrieve a team level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string The account.
variableUuid string The UUID of the variable to retrieve.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariableForUser

PipelineVariable GetPipelineVariableForUser(ctx, selectedUser, variableUuid) Get a variable for a user

Retrieve a user level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
selectedUser string Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
variableUuid string The UUID of the variable to retrieve.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariableForWorkspace

PipelineVariable GetPipelineVariableForWorkspace(ctx, workspace, variableUuid) Get variable for a workspace

Retrieve a workspace level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
variableUuid string The UUID of the variable to retrieve.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariablesForTeam

PaginatedPipelineVariables GetPipelineVariablesForTeam(ctx, username, optional) List variables for an account

Find account level variables. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string The account.
optional *PipelinesApiGetPipelineVariablesForTeamOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetPipelineVariablesForTeamOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineVariables

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariablesForUser

PaginatedPipelineVariables GetPipelineVariablesForUser(ctx, selectedUser, optional) List variables for a user

Find user level variables. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
selectedUser string Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
optional *PipelinesApiGetPipelineVariablesForUserOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetPipelineVariablesForUserOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineVariables

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelineVariablesForWorkspace

PaginatedPipelineVariables GetPipelineVariablesForWorkspace(ctx, workspace, optional) List variables for a workspace

Find workspace level variables.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
optional *PipelinesApiGetPipelineVariablesForWorkspaceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetPipelineVariablesForWorkspaceOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineVariables

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPipelinesForRepository

PaginatedPipelines GetPipelinesForRepository(ctx, workspace, repoSlug, optional) List pipelines

Find pipelines

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
optional *PipelinesApiGetPipelinesForRepositoryOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetPipelinesForRepositoryOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelines

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineCacheContentURI

PipelineCacheContentUri GetRepositoryPipelineCacheContentURI(ctx, workspace, repoSlug, cacheUuid) Get cache content URI

Retrieve the URI of the content of the specified cache.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string The account.
repoSlug string The repository.
cacheUuid string The UUID of the cache.

Return type

PipelineCacheContentUri

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineCaches

PaginatedPipelineCaches GetRepositoryPipelineCaches(ctx, workspace, repoSlug, optional) List caches

Retrieve the repository pipelines caches.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string The account.
repoSlug string The repository.
optional *PipelinesApiGetRepositoryPipelineCachesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetRepositoryPipelineCachesOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineCaches

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineConfig

PipelinesConfig GetRepositoryPipelineConfig(ctx, workspace, repoSlug) Get configuration

Retrieve the repository pipelines configuration.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string The account.
repoSlug string The repository.

Return type

PipelinesConfig

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineKnownHost

PipelineKnownHost GetRepositoryPipelineKnownHost(ctx, workspace, repoSlug, knownHostUuid) Get a known host

Retrieve a repository level known host.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
knownHostUuid string The UUID of the known host to retrieve.

Return type

PipelineKnownHost

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineKnownHosts

PaginatedPipelineKnownHosts GetRepositoryPipelineKnownHosts(ctx, workspace, repoSlug, optional) List known hosts

Find repository level known hosts.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
optional *PipelinesApiGetRepositoryPipelineKnownHostsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetRepositoryPipelineKnownHostsOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineKnownHosts

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineSchedule

PipelineSchedule GetRepositoryPipelineSchedule(ctx, workspace, repoSlug, scheduleUuid) Get a schedule

Retrieve a schedule by its UUID.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
scheduleUuid string The uuid of the schedule.

Return type

PipelineSchedule

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineScheduleExecutions

PaginatedPipelineScheduleExecutions GetRepositoryPipelineScheduleExecutions(ctx, workspace, repoSlug, scheduleUuid, optional) List executions of a schedule

Retrieve the executions of a given schedule.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
scheduleUuid string The uuid of the schedule.
optional *PipelinesApiGetRepositoryPipelineScheduleExecutionsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetRepositoryPipelineScheduleExecutionsOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineScheduleExecutions

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineSchedules

PaginatedPipelineSchedules GetRepositoryPipelineSchedules(ctx, workspace, repoSlug, optional) List schedules

Retrieve the configured schedules for the given repository.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
optional *PipelinesApiGetRepositoryPipelineSchedulesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetRepositoryPipelineSchedulesOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineSchedules

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineSshKeyPair

PipelineSshKeyPair GetRepositoryPipelineSshKeyPair(ctx, workspace, repoSlug) Get SSH key pair

Retrieve the repository SSH key pair excluding the SSH private key. The private key is a write only field and will never be exposed in the logs or the REST API.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineSshKeyPair

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineVariable

PipelineVariable GetRepositoryPipelineVariable(ctx, workspace, repoSlug, variableUuid) Get a variable for a repository

Retrieve a repository level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
variableUuid string The UUID of the variable to retrieve.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRepositoryPipelineVariables

PaginatedPipelineVariables GetRepositoryPipelineVariables(ctx, workspace, repoSlug, optional) List variables for a repository

Find repository level variables.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
optional *PipelinesApiGetRepositoryPipelineVariablesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PipelinesApiGetRepositoryPipelineVariablesOpts struct

Name Type Description Notes

page | optional.Int32| page |

Return type

PaginatedPipelineVariables

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

StopPipeline

StopPipeline(ctx, workspace, repoSlug, pipelineUuid) Stop a pipeline

Signal the stop of a pipeline and all of its steps that not have completed yet.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
pipelineUuid string The UUID of the pipeline.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateDeploymentVariable

DeploymentVariable UpdateDeploymentVariable(ctx, body, workspace, repoSlug, environmentUuid, variableUuid) Update a variable for an environment

Update a deployment environment level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body DeploymentVariable The updated deployment variable.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
environmentUuid string The environment.
variableUuid string The UUID of the variable to update.

Return type

DeploymentVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdatePipelineVariableForTeam

PipelineVariable UpdatePipelineVariableForTeam(ctx, body, username, variableUuid) Update a variable for a team

Update a team level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineVariable The updated variable.
username string The account.
variableUuid string The UUID of the variable.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdatePipelineVariableForUser

PipelineVariable UpdatePipelineVariableForUser(ctx, body, selectedUser, variableUuid) Update a variable for a user

Update a user level variable. This endpoint has been deprecated, and you should use the new workspaces endpoint. For more information, see the announcement.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineVariable The updated variable.
selectedUser string Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
variableUuid string The UUID of the variable.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdatePipelineVariableForWorkspace

PipelineVariable UpdatePipelineVariableForWorkspace(ctx, body, workspace, variableUuid) Update variable for a workspace

Update a workspace level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineVariable The updated variable.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
variableUuid string The UUID of the variable.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryBuildNumber

PipelineBuildNumber UpdateRepositoryBuildNumber(ctx, body, workspace, repoSlug) Update the next build number

Update the next build number that should be assigned to a pipeline. The next build number that will be configured has to be strictly higher than the current latest build number for this repository.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineBuildNumber The build number to update.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineBuildNumber

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryPipelineConfig

PipelinesConfig UpdateRepositoryPipelineConfig(ctx, body, workspace, repoSlug) Update configuration

Update the pipelines configuration for a repository.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelinesConfig The updated repository pipelines configuration.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelinesConfig

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryPipelineKeyPair

PipelineSshKeyPair UpdateRepositoryPipelineKeyPair(ctx, body, workspace, repoSlug) Update SSH key pair

Create or update the repository SSH key pair. The private key will be set as a default SSH identity in your build container.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineSshKeyPair The created or updated SSH key pair.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.

Return type

PipelineSshKeyPair

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryPipelineKnownHost

PipelineKnownHost UpdateRepositoryPipelineKnownHost(ctx, body, workspace, repoSlug, knownHostUuid) Update a known host

Update a repository level known host.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineKnownHost The updated known host.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
knownHostUuid string The UUID of the known host to update.

Return type

PipelineKnownHost

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryPipelineSchedule

PipelineSchedule UpdateRepositoryPipelineSchedule(ctx, body, workspace, repoSlug, scheduleUuid) Update a schedule

Update a schedule.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineSchedulePutRequestBody The schedule to update.
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
scheduleUuid string The uuid of the schedule.

Return type

PipelineSchedule

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateRepositoryPipelineVariable

PipelineVariable UpdateRepositoryPipelineVariable(ctx, body, workspace, repoSlug, variableUuid) Update a variable for a repository

Update a repository level variable.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body PipelineVariable The updated variable
workspace string This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`.
repoSlug string The repository.
variableUuid string The UUID of the variable to update.

Return type

PipelineVariable

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]