CatalogArgs

data class CatalogArgs(val adoGit: Output<GitCatalogArgs>? = null, val catalogName: Output<String>? = null, val devCenterName: Output<String>? = null, val gitHub: Output<GitCatalogArgs>? = null, val resourceGroupName: Output<String>? = null, val syncType: Output<Either<String, CatalogSyncType>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CatalogArgs>

Represents a catalog. Uses Azure REST API version 2024-02-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2023-04-01, 2023-08-01-preview, 2023-10-01-preview, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native devcenter [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Catalogs_CreateOrUpdateAdo

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var catalog = new AzureNative.DevCenter.Catalog("catalog", 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",
DevCenterName = "Contoso",
ResourceGroupName = "rg1",
SyncType = AzureNative.DevCenter.CatalogSyncType.Scheduled,
});
});
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.NewCatalog(ctx, "catalog", &devcenter.CatalogArgs{
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"),
DevCenterName: pulumi.String("Contoso"),
ResourceGroupName: pulumi.String("rg1"),
SyncType: pulumi.String(devcenter.CatalogSyncTypeScheduled),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Catalog;
import com.pulumi.azurenative.devcenter.CatalogArgs;
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 catalog = new Catalog("catalog", CatalogArgs.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")
.devCenterName("Contoso")
.resourceGroupName("rg1")
.syncType("Scheduled")
.build());
}
}

Catalogs_CreateOrUpdateGitHub

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var catalog = new AzureNative.DevCenter.Catalog("catalog", new()
{
CatalogName = "CentralCatalog",
DevCenterName = "Contoso",
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",
},
ResourceGroupName = "rg1",
SyncType = AzureNative.DevCenter.CatalogSyncType.Manual,
});
});
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.NewCatalog(ctx, "catalog", &devcenter.CatalogArgs{
CatalogName: pulumi.String("CentralCatalog"),
DevCenterName: pulumi.String("Contoso"),
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"),
},
ResourceGroupName: pulumi.String("rg1"),
SyncType: pulumi.String(devcenter.CatalogSyncTypeManual),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Catalog;
import com.pulumi.azurenative.devcenter.CatalogArgs;
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 catalog = new Catalog("catalog", CatalogArgs.builder()
.catalogName("CentralCatalog")
.devCenterName("Contoso")
.gitHub(GitCatalogArgs.builder()
.branch("main")
.path("/templates")
.secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
.uri("https://github.com/Contoso/centralrepo-fake.git")
.build())
.resourceGroupName("rg1")
.syncType("Manual")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devcenter:Catalog CentralCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}

Constructors

Link copied to clipboard
constructor(adoGit: Output<GitCatalogArgs>? = null, catalogName: Output<String>? = null, devCenterName: Output<String>? = null, gitHub: Output<GitCatalogArgs>? = null, resourceGroupName: Output<String>? = null, syncType: Output<Either<String, CatalogSyncType>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val adoGit: Output<GitCatalogArgs>? = null

Properties for an Azure DevOps catalog type.

Link copied to clipboard
val catalogName: Output<String>? = null

The name of the Catalog.

Link copied to clipboard
val devCenterName: Output<String>? = null

The name of the devcenter.

Link copied to clipboard
val gitHub: Output<GitCatalogArgs>? = null

Properties for a GitHub catalog type.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val syncType: Output<Either<String, CatalogSyncType>>? = null

Indicates the type of sync that is configured for the catalog.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): CatalogArgs