Project Catalog Args
data class ProjectCatalogArgs(val adoGit: Output<GitCatalogArgs>? = null, val catalogName: Output<String>? = null, val gitHub: Output<GitCatalogArgs>? = null, val projectName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val syncType: Output<Either<String, CatalogSyncType>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProjectCatalogArgs>
Represents a catalog. Uses Azure REST API version 2024-02-01. Other available API versions: 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01.
Example Usage
ProjectCatalogs_CreateOrUpdateAdo
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", new()
{
AdoGit = new AzureNative.DevCenter.Inputs.GitCatalogArgs
{
Branch = "main",
Path = "/templates",
SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
Uri = "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
},
CatalogName = "CentralCatalog",
ProjectName = "DevProject",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
AdoGit: &devcenter.GitCatalogArgs{
Branch: pulumi.String("main"),
Path: pulumi.String("/templates"),
SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
Uri: pulumi.String("https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso"),
},
CatalogName: pulumi.String("CentralCatalog"),
ProjectName: pulumi.String("DevProject"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.ProjectCatalog;
import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
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) {
var projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
.adoGit(GitCatalogArgs.builder()
.branch("main")
.path("/templates")
.secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
.uri("https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso")
.build())
.catalogName("CentralCatalog")
.projectName("DevProject")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
ProjectCatalogs_CreateOrUpdateGitHub
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", new()
{
CatalogName = "CentralCatalog",
GitHub = new AzureNative.DevCenter.Inputs.GitCatalogArgs
{
Branch = "main",
Path = "/templates",
SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
Uri = "https://github.com/Contoso/centralrepo-fake.git",
},
ProjectName = "DevProject",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
CatalogName: pulumi.String("CentralCatalog"),
GitHub: &devcenter.GitCatalogArgs{
Branch: pulumi.String("main"),
Path: pulumi.String("/templates"),
SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
Uri: pulumi.String("https://github.com/Contoso/centralrepo-fake.git"),
},
ProjectName: pulumi.String("DevProject"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.ProjectCatalog;
import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
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) {
var projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
.catalogName("CentralCatalog")
.gitHub(GitCatalogArgs.builder()
.branch("main")
.path("/templates")
.secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
.uri("https://github.com/Contoso/centralrepo-fake.git")
.build())
.projectName("DevProject")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:ProjectCatalog CentralCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(adoGit: Output<GitCatalogArgs>? = null, catalogName: Output<String>? = null, gitHub: Output<GitCatalogArgs>? = null, projectName: Output<String>? = null, resourceGroupName: Output<String>? = null, syncType: Output<Either<String, CatalogSyncType>>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Properties for an Azure DevOps catalog type.
Link copied to clipboard
The name of the Catalog.
Link copied to clipboard
Properties for a GitHub catalog type.
Link copied to clipboard
The name of the project.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Indicates the type of sync that is configured for the catalog.