Skip to content

Latest commit

 

History

History
161 lines (97 loc) · 5.14 KB

DeploymentsApi.md

File metadata and controls

161 lines (97 loc) · 5.14 KB

\DeploymentsApi

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

Method HTTP request Description
GetDeploymentForRepository Get /repositories/{username}/{repo_slug}/deployments/{deployment_uuid}
GetDeploymentsForRepository Get /repositories/{username}/{repo_slug}/deployments/
GetEnvironmentForRepository Get /repositories/{username}/{repo_slug}/environments/{environment_uuid}
GetEnvironmentsForRepository Get /repositories/{username}/{repo_slug}/environments/
UpdateEnvironmentForRepository Post /repositories/{username}/{repo_slug}/environments/{environment_uuid}/changes/

GetDeploymentForRepository

Deployment GetDeploymentForRepository(ctx, username, repoSlug, deploymentUuid)

Retrieve a deployment

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
username string The account.
repoSlug string The repository.
deploymentUuid string The deployment UUID.

Return type

Deployment

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]

GetDeploymentsForRepository

PaginatedDeployments GetDeploymentsForRepository(ctx, username, repoSlug)

Find deployments

Required Parameters

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

Return type

PaginatedDeployments

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]

GetEnvironmentForRepository

DeploymentEnvironment GetEnvironmentForRepository(ctx, username, repoSlug, environmentUuid)

Retrieve an environment

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
username string The account.
repoSlug string The repository.
environmentUuid string The environment UUID.

Return type

DeploymentEnvironment

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]

GetEnvironmentsForRepository

PaginatedEnvironments GetEnvironmentsForRepository(ctx, username, repoSlug)

Find environments

Required Parameters

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

Return type

PaginatedEnvironments

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]

UpdateEnvironmentForRepository

UpdateEnvironmentForRepository(ctx, username, repoSlug, environmentUuid)

Update an environment

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
username string The account.
repoSlug string The repository.
environmentUuid string The environment UUID.

Return type

(empty response body)

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]