AzureDevOps

Pulumi Official
Package maintained by Pulumi
v2.4.0 published on Friday, Apr 22, 2022 by Pulumi

getProject

Deprecated:

azuredevops.core.getProject has been deprecated in favor of azuredevops.getProject

Use this data source to access information about an existing Project within Azure DevOps.

Example Usage

using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AzureDevOps.GetProject.InvokeAsync(new AzureDevOps.GetProjectArgs
        {
            Name = "Example Project",
        }));
        this.Project = example;
    }

    [Output("project")]
    public Output<string> Project { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.LookupProject(ctx, &GetProjectArgs{
			Name: pulumi.StringRef("Example Project"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("project", example)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.get_project(name="Example Project")
pulumi.export("project", example)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = azuredevops.getProject({
    name: "Example Project",
});
export const project = example;

Coming soon!

Using getProject

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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
def get_project(name: Optional[str] = None,
                project_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(name: Optional[pulumi.Input[str]] = None,
                project_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
func GetProject(ctx *Context, args *GetProjectArgs, opts ...InvokeOption) (*GetProjectResult, error)
func GetProjectOutput(ctx *Context, args *GetProjectOutputArgs, opts ...InvokeOption) GetProjectResultOutput

> Note: This function is named GetProject in the Go SDK.

public static class GetProject 
{
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azuredevops:Core/getProject:getProject
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

Name of the Project.

ProjectId string

ID of the Project.

Name string

Name of the Project.

ProjectId string

ID of the Project.

name String

Name of the Project.

projectId String

ID of the Project.

name string

Name of the Project.

projectId string

ID of the Project.

name str

Name of the Project.

project_id str

ID of the Project.

name String

Name of the Project.

projectId String

ID of the Project.

getProject Result

The following output properties are available:

Description string
Features Dictionary<string, object>
Id string

The provider-assigned unique ID for this managed resource.

ProcessTemplateId string
VersionControl string
Visibility string
WorkItemTemplate string
Name string
ProjectId string
Description string
Features map[string]interface{}
Id string

The provider-assigned unique ID for this managed resource.

ProcessTemplateId string
VersionControl string
Visibility string
WorkItemTemplate string
Name string
ProjectId string
description String
features Map<String,Object>
id String

The provider-assigned unique ID for this managed resource.

processTemplateId String
versionControl String
visibility String
workItemTemplate String
name String
projectId String
description string
features {[key: string]: any}
id string

The provider-assigned unique ID for this managed resource.

processTemplateId string
versionControl string
visibility string
workItemTemplate string
name string
projectId string
description str
features Mapping[str, Any]
id str

The provider-assigned unique ID for this managed resource.

process_template_id str
version_control str
visibility str
work_item_template str
name str
project_id str
description String
features Map<Any>
id String

The provider-assigned unique ID for this managed resource.

processTemplateId String
versionControl String
visibility String
workItemTemplate String
name String
projectId String

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.