dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi
dbtcloud.getAzureDevOpsProject
Explore with Pulumi AI
Use this data source to retrieve the ID of an Azure Dev Ops project based on its name.
This data source requires connecting with a user token and doesn’t work with a service token.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const myAdoProject = dbtcloud.getAzureDevOpsProject({
name: "my-project-name",
});
import pulumi
import pulumi_dbtcloud as dbtcloud
my_ado_project = dbtcloud.get_azure_dev_ops_project(name="my-project-name")
package main
import (
"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbtcloud.GetAzureDevOpsProject(ctx, &dbtcloud.GetAzureDevOpsProjectArgs{
Name: "my-project-name",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
var myAdoProject = DbtCloud.GetAzureDevOpsProject.Invoke(new()
{
Name = "my-project-name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.DbtcloudFunctions;
import com.pulumi.dbtcloud.inputs.GetAzureDevOpsProjectArgs;
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 myAdoProject = DbtcloudFunctions.getAzureDevOpsProject(GetAzureDevOpsProjectArgs.builder()
.name("my-project-name")
.build());
}
}
variables:
myAdoProject:
fn::invoke:
Function: dbtcloud:getAzureDevOpsProject
Arguments:
name: my-project-name
Using getAzureDevOpsProject
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 getAzureDevOpsProject(args: GetAzureDevOpsProjectArgs, opts?: InvokeOptions): Promise<GetAzureDevOpsProjectResult>
function getAzureDevOpsProjectOutput(args: GetAzureDevOpsProjectOutputArgs, opts?: InvokeOptions): Output<GetAzureDevOpsProjectResult>
def get_azure_dev_ops_project(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAzureDevOpsProjectResult
def get_azure_dev_ops_project_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAzureDevOpsProjectResult]
func GetAzureDevOpsProject(ctx *Context, args *GetAzureDevOpsProjectArgs, opts ...InvokeOption) (*GetAzureDevOpsProjectResult, error)
func GetAzureDevOpsProjectOutput(ctx *Context, args *GetAzureDevOpsProjectOutputArgs, opts ...InvokeOption) GetAzureDevOpsProjectResultOutput
> Note: This function is named GetAzureDevOpsProject
in the Go SDK.
public static class GetAzureDevOpsProject
{
public static Task<GetAzureDevOpsProjectResult> InvokeAsync(GetAzureDevOpsProjectArgs args, InvokeOptions? opts = null)
public static Output<GetAzureDevOpsProjectResult> Invoke(GetAzureDevOpsProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAzureDevOpsProjectResult> getAzureDevOpsProject(GetAzureDevOpsProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dbtcloud:index/getAzureDevOpsProject:getAzureDevOpsProject
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the ADO project
- Name string
- The name of the ADO project
- name String
- The name of the ADO project
- name string
- The name of the ADO project
- name str
- The name of the ADO project
- name String
- The name of the ADO project
getAzureDevOpsProject Result
The following output properties are available:
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.