bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92
bitbucket.getDeployments
Explore with Pulumi AI
bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92
Provides a way to fetch data on Deployments.
OAuth2 Scopes: none
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getDeployments({
    repository: "example",
    workspace: "example",
});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_deployments(repository="example",
    workspace="example")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bitbucket.GetDeployments(ctx, &bitbucket.GetDeploymentsArgs{
			Repository: "example",
			Workspace:  "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() => 
{
    var example = Bitbucket.GetDeployments.Invoke(new()
    {
        Repository = "example",
        Workspace = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetDeploymentsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = BitbucketFunctions.getDeployments(GetDeploymentsArgs.builder()
            .repository("example")
            .workspace("example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: bitbucket:getDeployments
      arguments:
        repository: example
        workspace: example
Using getDeployments
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDeployments(args: GetDeploymentsArgs, opts?: InvokeOptions): Promise<GetDeploymentsResult>
function getDeploymentsOutput(args: GetDeploymentsOutputArgs, opts?: InvokeOptions): Output<GetDeploymentsResult>def get_deployments(id: Optional[str] = None,
                    repository: Optional[str] = None,
                    workspace: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDeploymentsResult
def get_deployments_output(id: Optional[pulumi.Input[str]] = None,
                    repository: Optional[pulumi.Input[str]] = None,
                    workspace: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentsResult]func GetDeployments(ctx *Context, args *GetDeploymentsArgs, opts ...InvokeOption) (*GetDeploymentsResult, error)
func GetDeploymentsOutput(ctx *Context, args *GetDeploymentsOutputArgs, opts ...InvokeOption) GetDeploymentsResultOutput> Note: This function is named GetDeployments in the Go SDK.
public static class GetDeployments 
{
    public static Task<GetDeploymentsResult> InvokeAsync(GetDeploymentsArgs args, InvokeOptions? opts = null)
    public static Output<GetDeploymentsResult> Invoke(GetDeploymentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDeploymentsResult> getDeployments(GetDeploymentsArgs args, InvokeOptions options)
public static Output<GetDeploymentsResult> getDeployments(GetDeploymentsArgs args, InvokeOptions options)
fn::invoke:
  function: bitbucket:index/getDeployments:getDeployments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Repository string
- The repository name.
- Workspace string
- The workspace name.
- Id string
- Repository string
- The repository name.
- Workspace string
- The workspace name.
- Id string
- repository String
- The repository name.
- workspace String
- The workspace name.
- id String
- repository string
- The repository name.
- workspace string
- The workspace name.
- id string
- repository str
- The repository name.
- workspace str
- The workspace name.
- id str
- repository String
- The repository name.
- workspace String
- The workspace name.
- id String
getDeployments Result
The following output properties are available:
- Id string
- Names List<string>
- Names of deployments for a repository.
- Repository string
- Uuids List<string>
- UUIDs of deployments for a repository.
- Workspace string
- Id string
- Names []string
- Names of deployments for a repository.
- Repository string
- Uuids []string
- UUIDs of deployments for a repository.
- Workspace string
- id String
- names List<String>
- Names of deployments for a repository.
- repository String
- uuids List<String>
- UUIDs of deployments for a repository.
- workspace String
- id string
- names string[]
- Names of deployments for a repository.
- repository string
- uuids string[]
- UUIDs of deployments for a repository.
- workspace string
- id str
- names Sequence[str]
- Names of deployments for a repository.
- repository str
- uuids Sequence[str]
- UUIDs of deployments for a repository.
- workspace str
- id String
- names List<String>
- Names of deployments for a repository.
- repository String
- uuids List<String>
- UUIDs of deployments for a repository.
- workspace String
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the bitbucketTerraform Provider.
bitbucket 2.47.0 published on Monday, May 5, 2025 by drfaust92