azure-native.devcenter.Catalog
Explore with Pulumi AI
Represents a catalog. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2022-09-01-preview.
Other available API versions: 2023-08-01-preview, 2023-10-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview.
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",
});
});
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"),
})
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")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
catalog = azure_native.devcenter.Catalog("catalog",
ado_git={
"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="CentralCatalog",
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: "CentralCatalog",
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: CentralCatalog
devCenterName: Contoso
resourceGroupName: rg1
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",
});
});
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"),
})
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")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
catalog = azure_native.devcenter.Catalog("catalog",
catalog_name="CentralCatalog",
dev_center_name="Contoso",
git_hub={
"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: "CentralCatalog",
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: CentralCatalog
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Catalog(name: string, args: CatalogArgs, opts?: CustomResourceOptions);
@overload
def Catalog(resource_name: str,
args: CatalogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Catalog(resource_name: str,
opts: Optional[ResourceOptions] = None,
dev_center_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
ado_git: Optional[GitCatalogArgs] = None,
catalog_name: Optional[str] = None,
git_hub: Optional[GitCatalogArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeCatalogResource = new AzureNative.DevCenter.Catalog("azure-nativeCatalogResource", new()
{
DevCenterName = "string",
ResourceGroupName = "string",
AdoGit = new AzureNative.DevCenter.Inputs.GitCatalogArgs
{
Branch = "string",
Path = "string",
SecretIdentifier = "string",
Uri = "string",
},
CatalogName = "string",
GitHub = new AzureNative.DevCenter.Inputs.GitCatalogArgs
{
Branch = "string",
Path = "string",
SecretIdentifier = "string",
Uri = "string",
},
});
example, err := devcenter.NewCatalog(ctx, "azure-nativeCatalogResource", &devcenter.CatalogArgs{
DevCenterName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AdoGit: &devcenter.GitCatalogArgs{
Branch: pulumi.String("string"),
Path: pulumi.String("string"),
SecretIdentifier: pulumi.String("string"),
Uri: pulumi.String("string"),
},
CatalogName: pulumi.String("string"),
GitHub: &devcenter.GitCatalogArgs{
Branch: pulumi.String("string"),
Path: pulumi.String("string"),
SecretIdentifier: pulumi.String("string"),
Uri: pulumi.String("string"),
},
})
var azure_nativeCatalogResource = new Catalog("azure-nativeCatalogResource", CatalogArgs.builder()
.devCenterName("string")
.resourceGroupName("string")
.adoGit(GitCatalogArgs.builder()
.branch("string")
.path("string")
.secretIdentifier("string")
.uri("string")
.build())
.catalogName("string")
.gitHub(GitCatalogArgs.builder()
.branch("string")
.path("string")
.secretIdentifier("string")
.uri("string")
.build())
.build());
azure_native_catalog_resource = azure_native.devcenter.Catalog("azure-nativeCatalogResource",
dev_center_name="string",
resource_group_name="string",
ado_git={
"branch": "string",
"path": "string",
"secretIdentifier": "string",
"uri": "string",
},
catalog_name="string",
git_hub={
"branch": "string",
"path": "string",
"secretIdentifier": "string",
"uri": "string",
})
const azure_nativeCatalogResource = new azure_native.devcenter.Catalog("azure-nativeCatalogResource", {
devCenterName: "string",
resourceGroupName: "string",
adoGit: {
branch: "string",
path: "string",
secretIdentifier: "string",
uri: "string",
},
catalogName: "string",
gitHub: {
branch: "string",
path: "string",
secretIdentifier: "string",
uri: "string",
},
});
type: azure-native:devcenter:Catalog
properties:
adoGit:
branch: string
path: string
secretIdentifier: string
uri: string
catalogName: string
devCenterName: string
gitHub:
branch: string
path: string
secretIdentifier: string
uri: string
resourceGroupName: string
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 - The name of the resource group. The name is case insensitive.
- Ado
Git Pulumi.Azure Native. Dev Center. Inputs. Git Catalog - 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 - Properties for a GitHub catalog type.
- Dev
Center stringName - The name of the devcenter.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- 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 - The name of the resource group. The name is case insensitive.
- ado
Git GitCatalog - Properties for an Azure DevOps catalog type.
- catalog
Name String - The name of the Catalog.
- git
Hub GitCatalog - Properties for a GitHub catalog type.
- dev
Center stringName - The name of the devcenter.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- ado
Git GitCatalog - Properties for an Azure DevOps catalog type.
- catalog
Name string - The name of the Catalog.
- git
Hub GitCatalog - Properties for a GitHub catalog type.
- dev_
center_ strname - The name of the devcenter.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- 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 - The name of the resource group. The name is case insensitive.
- 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.
- Sync
State string - The synchronization state of the catalog.
- 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.
- Sync
State string - The synchronization state of the catalog.
- 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.
- sync
State String - The synchronization state of the catalog.
- 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.
- sync
State string - The synchronization state of the catalog.
- 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.
- sync_
state str - The synchronization state of the catalog.
- 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.
- sync
State String - The synchronization state of the catalog.
- 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, GitCatalogArgs
- 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, GitCatalogResponseArgs
- 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, SystemDataResponseArgs
- 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 CentralCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0