BitBucket
Manages a Bitbucket service endpoint within Azure DevOps.
Relevant Links
Example Usage
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
class MyStack : Stack
{
public MyStack()
{
var project = new AzureDevOps.Core.Project("project", new AzureDevOps.Core.ProjectArgs
{
ProjectName = "Sample Project",
Visibility = "private",
VersionControl = "Git",
WorkItemTemplate = "Agile",
});
var serviceendpoint = new AzureDevOps.ServiceEndpoint.BitBucket("serviceendpoint", new AzureDevOps.ServiceEndpoint.BitBucketArgs
{
ProjectId = project.Id,
Username = "xxxx",
Password = "xxxx",
ServiceEndpointName = "test-bitbucket",
Description = "test",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/go/azuredevops/Core"
"github.com/pulumi/pulumi-azuredevops/sdk/go/azuredevops/ServiceEndpoint"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := Core.NewProject(ctx, "project", &Core.ProjectArgs{
ProjectName: pulumi.String("Sample Project"),
Visibility: pulumi.String("private"),
VersionControl: pulumi.String("Git"),
WorkItemTemplate: pulumi.String("Agile"),
})
if err != nil {
return err
}
serviceendpoint, err := ServiceEndpoint.NewBitBucket(ctx, "serviceendpoint", &ServiceEndpoint.BitBucketArgs{
ProjectId: project.ID(),
Username: pulumi.String("xxxx"),
Password: pulumi.String("xxxx"),
ServiceEndpointName: pulumi.String("test-bitbucket"),
Description: pulumi.String("test"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azuredevops as azuredevops
project = azuredevops.core.Project("project",
project_name="Sample Project",
visibility="private",
version_control="Git",
work_item_template="Agile")
serviceendpoint = azuredevops.service_endpoint.BitBucket("serviceendpoint",
project_id=project.id,
username="xxxx",
password="xxxx",
service_endpoint_name="test-bitbucket",
description="test")import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const project = new azuredevops.Core.Project("project", {
projectName: "Sample Project",
visibility: "private",
versionControl: "Git",
workItemTemplate: "Agile",
});
const serviceendpoint = new azuredevops.ServiceEndpoint.BitBucket("serviceendpoint", {
projectId: project.id,
username: "xxxx",
password: "xxxx",
serviceEndpointName: "test-bitbucket",
description: "test",
});Create a BitBucket Resource
new BitBucket(name: string, args: BitBucketArgs, opts?: CustomResourceOptions);def BitBucket(resource_name, opts=None, authorization=None, description=None, password=None, project_id=None, service_endpoint_name=None, username=None, __props__=None);func NewBitBucket(ctx *Context, name string, args BitBucketArgs, opts ...ResourceOption) (*BitBucket, error)public BitBucket(string name, BitBucketArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BitBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BitBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BitBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BitBucket Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BitBucket resource accepts the following input properties:
- Password string
Bitbucket account password.
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Username string
Bitbucket account username.
- Dictionary<string, string>
- Description string
- Password string
Bitbucket account password.
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Username string
Bitbucket account username.
- map[string]string
- Description string
- password string
Bitbucket account password.
- project
Id string The project ID or project name.
- service
Endpoint stringName The Service Endpoint name.
- username string
Bitbucket account username.
- {[key: string]: string}
- description string
- password str
Bitbucket account password.
- project_
id str The project ID or project name.
- service_
endpoint_ strname The Service Endpoint name.
- username str
Bitbucket account username.
- Dict[str, str]
- description str
Outputs
All input properties are implicitly available as output properties. Additionally, the BitBucket resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Password
Hash string A bcrypted hash of the attribute ‘password’
- Id string
- The provider-assigned unique ID for this managed resource.
- Password
Hash string A bcrypted hash of the attribute ‘password’
- id string
- The provider-assigned unique ID for this managed resource.
- password
Hash string A bcrypted hash of the attribute ‘password’
- id str
- The provider-assigned unique ID for this managed resource.
- password_
hash str A bcrypted hash of the attribute ‘password’
Look up an Existing BitBucket Resource
Get an existing BitBucket resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BitBucketState, opts?: CustomResourceOptions): BitBucketstatic get(resource_name, id, opts=None, authorization=None, description=None, password=None, password_hash=None, project_id=None, service_endpoint_name=None, username=None, __props__=None);func GetBitBucket(ctx *Context, name string, id IDInput, state *BitBucketState, opts ...ResourceOption) (*BitBucket, error)public static BitBucket Get(string name, Input<string> id, BitBucketState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Dictionary<string, string>
- Description string
- Password string
Bitbucket account password.
- Password
Hash string A bcrypted hash of the attribute ‘password’
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Username string
Bitbucket account username.
- map[string]string
- Description string
- Password string
Bitbucket account password.
- Password
Hash string A bcrypted hash of the attribute ‘password’
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Username string
Bitbucket account username.
- {[key: string]: string}
- description string
- password string
Bitbucket account password.
- password
Hash string A bcrypted hash of the attribute ‘password’
- project
Id string The project ID or project name.
- service
Endpoint stringName The Service Endpoint name.
- username string
Bitbucket account username.
- Dict[str, str]
- description str
- password str
Bitbucket account password.
- password_
hash str A bcrypted hash of the attribute ‘password’
- project_
id str The project ID or project name.
- service_
endpoint_ strname The Service Endpoint name.
- username str
Bitbucket account username.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.