azure-native.devcenter.Catalog
Explore with Pulumi AI
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 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:
- Dev
Center stringName The name of the devcenter.
- Resource
Group stringName Name of the resource group within the Azure subscription.
- Ado
Git Pulumi.Azure Native. Dev Center. Inputs. Git Catalog Args Properties for an Azure DevOps catalog type.
- Catalog
Name string The name of the Catalog.
- Git
Hub Pulumi.Azure Native. Dev Center. Inputs. Git Catalog Args Properties for a GitHub catalog type.
- Dev
Center stringName The name of the devcenter.
- Resource
Group stringName Name of the resource group within the Azure subscription.
- Ado
Git GitCatalog Args Properties for an Azure DevOps catalog type.
- Catalog
Name string The name of the Catalog.
- Git
Hub GitCatalog Args Properties for a GitHub catalog type.
- dev
Center StringName The name of the devcenter.
- resource
Group StringName Name of the resource group within the Azure subscription.
- ado
Git GitCatalog Args Properties for an Azure DevOps catalog type.
- catalog
Name String The name of the Catalog.
- git
Hub GitCatalog Args Properties for a GitHub catalog type.
- dev
Center stringName The name of the devcenter.
- resource
Group stringName Name of the resource group within the Azure subscription.
- ado
Git GitCatalog Args Properties for an Azure DevOps catalog type.
- catalog
Name string The name of the Catalog.
- git
Hub GitCatalog Args Properties for a GitHub catalog type.
- dev_
center_ strname The name of the devcenter.
- resource_
group_ strname Name of the resource group within the Azure subscription.
- ado_
git GitCatalog Args Properties for an Azure DevOps catalog type.
- catalog_
name str The name of the Catalog.
- git_
hub GitCatalog Args Properties for a GitHub catalog type.
- dev
Center StringName The name of the devcenter.
- resource
Group StringName Name of the resource group within the Azure subscription.
- ado
Git Property Map Properties for an Azure DevOps catalog type.
- catalog
Name String The name of the Catalog.
- git
Hub 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.
- Last
Sync stringTime When the catalog was last synced.
- Name string
The name of the resource
- Provisioning
State string The provisioning state of the resource.
- System
Data Pulumi.Azure Native. Dev Center. Outputs. System Data Response 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.
- Last
Sync stringTime When the catalog was last synced.
- Name string
The name of the resource
- Provisioning
State string The provisioning state of the resource.
- System
Data SystemData Response 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.
- last
Sync StringTime When the catalog was last synced.
- name String
The name of the resource
- provisioning
State String The provisioning state of the resource.
- system
Data SystemData Response 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.
- last
Sync stringTime When the catalog was last synced.
- name string
The name of the resource
- provisioning
State string The provisioning state of the resource.
- system
Data SystemData Response 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_ strtime When the catalog was last synced.
- name str
The name of the resource
- provisioning_
state str The provisioning state of the resource.
- system_
data SystemData Response 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.
- last
Sync StringTime When the catalog was last synced.
- name String
The name of the resource
- provisioning
State String The provisioning state of the resource.
- system
Data 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.
- Secret
Identifier 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.
- Secret
Identifier 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.
- secret
Identifier 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.
- secret
Identifier 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.
- secret
Identifier 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.
- Secret
Identifier 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.
- Secret
Identifier 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.
- secret
Identifier 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.
- secret
Identifier 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.
- secret
Identifier String A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri String
Git URI.
SystemDataResponse
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified stringBy Type 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_ strtype The type of identity that created the resource.
- last_
modified_ strat The timestamp of resource last modification (UTC)
- last_
modified_ strby The identity that last modified the resource.
- last_
modified_ strby_ type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type 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
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0