incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io
incident.getCatalogType
Explore with Pulumi AI
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io
This data source provides information about a catalog type.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.incident.IncidentFunctions;
import com.pulumi.incident.inputs.GetCatalogTypeArgs;
import com.pulumi.incident.CatalogEntries;
import com.pulumi.incident.CatalogEntriesArgs;
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) {
final var service = IncidentFunctions.getCatalogType(GetCatalogTypeArgs.builder()
.name("Service")
.build());
// Now provision the entries for the catalog type.
var services = new CatalogEntries("services", CatalogEntriesArgs.builder()
.catalogEntriesId(service.applyValue(getCatalogTypeResult -> getCatalogTypeResult.id()))
.entries(Map.of("primary", Map.ofEntries(
Map.entry("name", "artist-web"),
Map.entry("description", "public-websites"),
Map.entry("tags", "java")
)))
.build());
}
}
resources:
# Now provision the entries for the catalog type.
services:
type: incident:CatalogEntries
properties:
# This uses the data source to get the ID of the catalog type. It is usually
# # adviseable that you manage your catalog types in terraform if you are also
# # managing your entries which normally means this isn't required.
catalogEntriesId: ${service.id}
entries:
primary:
name: artist-web
description: public-websites
tags:
- java
variables:
service:
fn::invoke:
function: incident:getCatalogType
arguments:
name: Service
Using getCatalogType
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCatalogType(args: GetCatalogTypeArgs, opts?: InvokeOptions): Promise<GetCatalogTypeResult>
function getCatalogTypeOutput(args: GetCatalogTypeOutputArgs, opts?: InvokeOptions): Output<GetCatalogTypeResult>
def get_catalog_type(categories: Optional[Sequence[str]] = None,
name: Optional[str] = None,
type_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCatalogTypeResult
def get_catalog_type_output(categories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
type_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCatalogTypeResult]
func LookupCatalogType(ctx *Context, args *LookupCatalogTypeArgs, opts ...InvokeOption) (*LookupCatalogTypeResult, error)
func LookupCatalogTypeOutput(ctx *Context, args *LookupCatalogTypeOutputArgs, opts ...InvokeOption) LookupCatalogTypeResultOutput
> Note: This function is named LookupCatalogType
in the Go SDK.
public static class GetCatalogType
{
public static Task<GetCatalogTypeResult> InvokeAsync(GetCatalogTypeArgs args, InvokeOptions? opts = null)
public static Output<GetCatalogTypeResult> Invoke(GetCatalogTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCatalogTypeResult> getCatalogType(GetCatalogTypeArgs args, InvokeOptions options)
public static Output<GetCatalogTypeResult> getCatalogType(GetCatalogTypeArgs args, InvokeOptions options)
fn::invoke:
function: incident:index/getCatalogType:getCatalogType
arguments:
# arguments dictionary
The following arguments are supported:
- Categories List<string>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - Name string
- Name is the human readable name of this type
- Type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- Categories []string
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - Name string
- Name is the human readable name of this type
- Type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories List<String>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - name String
- Name is the human readable name of this type
- type
Name String - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories string[]
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - name string
- Name is the human readable name of this type
- type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories Sequence[str]
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - name str
- Name is the human readable name of this type
- type_
name str - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories List<String>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
. - name String
- Name is the human readable name of this type
- type
Name String - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
getCatalogType Result
The following output properties are available:
- Description string
- Human readble description of this type
- Id string
- ID of this catalog type
- Name string
- Name is the human readable name of this type
- Source
Repo stringUrl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- Type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- Categories List<string>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
- Description string
- Human readble description of this type
- Id string
- ID of this catalog type
- Name string
- Name is the human readable name of this type
- Source
Repo stringUrl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- Type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- Categories []string
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
- description String
- Human readble description of this type
- id String
- ID of this catalog type
- name String
- Name is the human readable name of this type
- source
Repo StringUrl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- type
Name String - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories List<String>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
- description string
- Human readble description of this type
- id string
- ID of this catalog type
- name string
- Name is the human readable name of this type
- source
Repo stringUrl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- type
Name string - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories string[]
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
- description str
- Human readble description of this type
- id str
- ID of this catalog type
- name str
- Name is the human readable name of this type
- source_
repo_ strurl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- type_
name str - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories Sequence[str]
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
- description String
- Human readble description of this type
- id String
- ID of this catalog type
- name String
- Name is the human readable name of this type
- source
Repo StringUrl - The url of the external repository where this type is managed. When set, users will not be able to edit the catalog type (or its entries) via the UI, and will instead be provided a link to this URL.
- type
Name String - The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
- categories List<String>
- The categories that this type belongs to, to be shown in the web dashboard. Possible values are:
customer
,issue-tracker
,product-feature
,service
,on-call
,team
,user
.
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incident
Terraform Provider.
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io