Azure Native

v1.78.0 published on Wednesday, Sep 14, 2022 by Pulumi

Catalog

Represents a catalog. API Version: 2022-09-01-preview.

Example Usage

Catalogs_CreateOrUpdateAdo

using System.Collections.Generic;
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 = "{catalogName}",
        DevCenterName = "Contoso",
        ResourceGroupName = "rg1",
    });

});
package main

import (
	devcenter "github.com/pulumi/pulumi-azure-native/sdk/go/azure/devcenter"
	"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("{catalogName}"),
			DevCenterName:     pulumi.String("Contoso"),
			ResourceGroupName: pulumi.String("rg1"),
		})
		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 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(Map.ofEntries(
                Map.entry("branch", "main"),
                Map.entry("path", "/templates"),
                Map.entry("secretIdentifier", "https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
                Map.entry("uri", "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso")
            ))
            .catalogName("{catalogName}")
            .devCenterName("Contoso")
            .resourceGroupName("rg1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

catalog = azure_native.devcenter.Catalog("catalog",
    ado_git=azure_native.devcenter.GitCatalogArgs(
        branch="main",
        path="/templates",
        secret_identifier="https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri="https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
    ),
    catalog_name="{catalogName}",
    dev_center_name="Contoso",
    resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const catalog = new azure_native.devcenter.Catalog("catalog", {
    adoGit: {
        branch: "main",
        path: "/templates",
        secretIdentifier: "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri: "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
    },
    catalogName: "{catalogName}",
    devCenterName: "Contoso",
    resourceGroupName: "rg1",
});
resources:
  catalog:
    type: azure-native:devcenter:Catalog
    properties:
      adoGit:
        branch: main
        path: /templates
        secretIdentifier: https://contosokv.vault.azure.net/secrets/CentralRepoPat
        uri: https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso
      catalogName: '{catalogName}'
      devCenterName: Contoso
      resourceGroupName: rg1

Catalogs_CreateOrUpdateGitHub

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var catalog = new AzureNative.DevCenter.Catalog("catalog", new()
    {
        CatalogName = "{catalogName}",
        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",
    });

});
package main

import (
	devcenter "github.com/pulumi/pulumi-azure-native/sdk/go/azure/devcenter"
	"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("{catalogName}"),
			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"),
		})
		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 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("{catalogName}")
            .devCenterName("Contoso")
            .gitHub(Map.ofEntries(
                Map.entry("branch", "main"),
                Map.entry("path", "/templates"),
                Map.entry("secretIdentifier", "https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
                Map.entry("uri", "https://github.com/Contoso/centralrepo-fake.git")
            ))
            .resourceGroupName("rg1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

catalog = azure_native.devcenter.Catalog("catalog",
    catalog_name="{catalogName}",
    dev_center_name="Contoso",
    git_hub=azure_native.devcenter.GitCatalogArgs(
        branch="main",
        path="/templates",
        secret_identifier="https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri="https://github.com/Contoso/centralrepo-fake.git",
    ),
    resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const catalog = new azure_native.devcenter.Catalog("catalog", {
    catalogName: "{catalogName}",
    devCenterName: "Contoso",
    gitHub: {
        branch: "main",
        path: "/templates",
        secretIdentifier: "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri: "https://github.com/Contoso/centralrepo-fake.git",
    },
    resourceGroupName: "rg1",
});
resources:
  catalog:
    type: azure-native:devcenter:Catalog
    properties:
      catalogName: '{catalogName}'
      devCenterName: Contoso
      gitHub:
        branch: main
        path: /templates
        secretIdentifier: https://contosokv.vault.azure.net/secrets/CentralRepoPat
        uri: https://github.com/Contoso/centralrepo-fake.git
      resourceGroupName: rg1

Create a Catalog Resource

new Catalog(name: string, args: CatalogArgs, opts?: CustomResourceOptions);
@overload
def Catalog(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            ado_git: Optional[GitCatalogArgs] = None,
            catalog_name: Optional[str] = None,
            dev_center_name: Optional[str] = None,
            git_hub: Optional[GitCatalogArgs] = None,
            resource_group_name: Optional[str] = None)
@overload
def Catalog(resource_name: str,
            args: CatalogArgs,
            opts: Optional[ResourceOptions] = None)
func NewCatalog(ctx *Context, name string, args CatalogArgs, opts ...ResourceOption) (*Catalog, error)
public Catalog(string name, CatalogArgs args, CustomResourceOptions? opts = null)
public Catalog(String name, CatalogArgs args)
public Catalog(String name, CatalogArgs args, CustomResourceOptions options)
type: azure-native:devcenter:Catalog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CatalogArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CatalogArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CatalogArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CatalogArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CatalogArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Catalog Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Catalog resource accepts the following input properties:

DevCenterName string

The name of the devcenter.

ResourceGroupName string

Name of the resource group within the Azure subscription.

AdoGit Pulumi.AzureNative.DevCenter.Inputs.GitCatalogArgs

Properties for an Azure DevOps catalog type.

CatalogName string

The name of the Catalog.

GitHub Pulumi.AzureNative.DevCenter.Inputs.GitCatalogArgs

Properties for a GitHub catalog type.

DevCenterName string

The name of the devcenter.

ResourceGroupName string

Name of the resource group within the Azure subscription.

AdoGit GitCatalogArgs

Properties for an Azure DevOps catalog type.

CatalogName string

The name of the Catalog.

GitHub GitCatalogArgs

Properties for a GitHub catalog type.

devCenterName String

The name of the devcenter.

resourceGroupName String

Name of the resource group within the Azure subscription.

adoGit GitCatalogArgs

Properties for an Azure DevOps catalog type.

catalogName String

The name of the Catalog.

gitHub GitCatalogArgs

Properties for a GitHub catalog type.

devCenterName string

The name of the devcenter.

resourceGroupName string

Name of the resource group within the Azure subscription.

adoGit GitCatalogArgs

Properties for an Azure DevOps catalog type.

catalogName string

The name of the Catalog.

gitHub GitCatalogArgs

Properties for a GitHub catalog type.

dev_center_name str

The name of the devcenter.

resource_group_name str

Name of the resource group within the Azure subscription.

ado_git GitCatalogArgs

Properties for an Azure DevOps catalog type.

catalog_name str

The name of the Catalog.

git_hub GitCatalogArgs

Properties for a GitHub catalog type.

devCenterName String

The name of the devcenter.

resourceGroupName String

Name of the resource group within the Azure subscription.

adoGit Property Map

Properties for an Azure DevOps catalog type.

catalogName String

The name of the Catalog.

gitHub Property Map

Properties for a GitHub catalog type.

Outputs

All input properties are implicitly available as output properties. Additionally, the Catalog resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LastSyncTime string

When the catalog was last synced.

Name string

The name of the resource

ProvisioningState string

The provisioning state of the resource.

SystemData Pulumi.AzureNative.DevCenter.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Id string

The provider-assigned unique ID for this managed resource.

LastSyncTime string

When the catalog was last synced.

Name string

The name of the resource

ProvisioningState string

The provisioning state of the resource.

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

lastSyncTime String

When the catalog was last synced.

name String

The name of the resource

provisioningState String

The provisioning state of the resource.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id string

The provider-assigned unique ID for this managed resource.

lastSyncTime string

When the catalog was last synced.

name string

The name of the resource

provisioningState string

The provisioning state of the resource.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id str

The provider-assigned unique ID for this managed resource.

last_sync_time str

When the catalog was last synced.

name str

The name of the resource

provisioning_state str

The provisioning state of the resource.

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

lastSyncTime String

When the catalog was last synced.

name String

The name of the resource

provisioningState String

The provisioning state of the resource.

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

GitCatalog

Branch string

Git branch.

Path string

The folder where the catalog items can be found inside the repository.

SecretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

Uri string

Git URI.

Branch string

Git branch.

Path string

The folder where the catalog items can be found inside the repository.

SecretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

Uri string

Git URI.

branch String

Git branch.

path String

The folder where the catalog items can be found inside the repository.

secretIdentifier String

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri String

Git URI.

branch string

Git branch.

path string

The folder where the catalog items can be found inside the repository.

secretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri string

Git URI.

branch str

Git branch.

path str

The folder where the catalog items can be found inside the repository.

secret_identifier str

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri str

Git URI.

branch String

Git branch.

path String

The folder where the catalog items can be found inside the repository.

secretIdentifier String

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri String

Git URI.

GitCatalogResponse

Branch string

Git branch.

Path string

The folder where the catalog items can be found inside the repository.

SecretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

Uri string

Git URI.

Branch string

Git branch.

Path string

The folder where the catalog items can be found inside the repository.

SecretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

Uri string

Git URI.

branch String

Git branch.

path String

The folder where the catalog items can be found inside the repository.

secretIdentifier String

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri String

Git URI.

branch string

Git branch.

path string

The folder where the catalog items can be found inside the repository.

secretIdentifier string

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri string

Git URI.

branch str

Git branch.

path str

The folder where the catalog items can be found inside the repository.

secret_identifier str

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri str

Git URI.

branch String

Git branch.

path String

The folder where the catalog items can be found inside the repository.

secretIdentifier String

A reference to the Key Vault secret containing a security token to authenticate to a Git repository.

uri String

Git URI.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0