bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92
bitbucket.getDeployment
Explore with Pulumi AI
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92
Provides a way to fetch data on a Deployment.
OAuth2 Scopes: none
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getDeployment({
repository: "example",
uuid: "example",
workspace: "example",
});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_deployment(repository="example",
uuid="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.LookupDeployment(ctx, &bitbucket.LookupDeploymentArgs{
Repository: "example",
Uuid: "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.GetDeployment.Invoke(new()
{
Repository = "example",
Uuid = "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.GetDeploymentArgs;
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.getDeployment(GetDeploymentArgs.builder()
.repository("example")
.uuid("example")
.workspace("example")
.build());
}
}
variables:
example:
fn::invoke:
function: bitbucket:getDeployment
arguments:
repository: example
uuid: example
workspace: example
Using getDeployment
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 getDeployment(args: GetDeploymentArgs, opts?: InvokeOptions): Promise<GetDeploymentResult>
function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: InvokeOptions): Output<GetDeploymentResult>
def get_deployment(id: Optional[str] = None,
repository: Optional[str] = None,
uuid: Optional[str] = None,
workspace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeploymentResult
def get_deployment_output(id: Optional[pulumi.Input[str]] = None,
repository: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
workspace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentResult]
func LookupDeployment(ctx *Context, args *LookupDeploymentArgs, opts ...InvokeOption) (*LookupDeploymentResult, error)
func LookupDeploymentOutput(ctx *Context, args *LookupDeploymentOutputArgs, opts ...InvokeOption) LookupDeploymentResultOutput
> Note: This function is named LookupDeployment
in the Go SDK.
public static class GetDeployment
{
public static Task<GetDeploymentResult> InvokeAsync(GetDeploymentArgs args, InvokeOptions? opts = null)
public static Output<GetDeploymentResult> Invoke(GetDeploymentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeploymentResult> getDeployment(GetDeploymentArgs args, InvokeOptions options)
public static Output<GetDeploymentResult> getDeployment(GetDeploymentArgs args, InvokeOptions options)
fn::invoke:
function: bitbucket:index/getDeployment:getDeployment
arguments:
# arguments dictionary
The following arguments are supported:
- Repository string
- The repository name.
- Uuid string
- The environment UUID.
- Workspace string
- The workspace name.
- Id string
- Repository string
- The repository name.
- Uuid string
- The environment UUID.
- Workspace string
- The workspace name.
- Id string
- repository String
- The repository name.
- uuid String
- The environment UUID.
- workspace String
- The workspace name.
- id String
- repository string
- The repository name.
- uuid string
- The environment UUID.
- workspace string
- The workspace name.
- id string
- repository str
- The repository name.
- uuid str
- The environment UUID.
- workspace str
- The workspace name.
- id str
- repository String
- The repository name.
- uuid String
- The environment UUID.
- workspace String
- The workspace name.
- id String
getDeployment Result
The following output properties are available:
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucket
Terraform Provider.
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92