published on Wednesday, Nov 4, 2026 by incident-io
published on Wednesday, Nov 4, 2026 by incident-io
This resource adds your own aliases to a catalog entry that incident.io syncs, such as a
schedule, escalation path or user. The sync owns the entry and its other aliases, so you
can’t manage it with incident.CatalogEntry: look it up with the
incident.CatalogEntry data source instead.
Syncs keep these aliases, and the entry lists them in its aliases too. Terraform owns the whole list: it removes aliases added to it elsewhere, for example in the dashboard, on the next apply. When you destroy the resource, Terraform clears the list and leaves the entry in place.
Only catalog types that incident.io syncs or manages take these aliases. Changing them on the User
type, or on another type that team membership passes through, needs an API key with the
team.memberships_update scope (“Update team memberships”), because aliases on those
entries decide who belongs to a team.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as incident from "@incident-io/pulumi";
const schedule = incident.getCatalogType({
typeName: "Schedule",
});
const primaryOnCall = incident.getSchedule({
name: "Primary on-call",
});
// incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
// external ID.
const primaryOnCallGetCatalogEntry = Promise.all([schedule, primaryOnCall]).then(([schedule, primaryOnCall]) => incident.getCatalogEntry({
catalogTypeId: schedule.id,
identifier: primaryOnCall.id,
}));
const primaryOnCallCatalogEntryAliases = new incident.CatalogEntryAliases("primary_on_call", {
entryId: primaryOnCallGetCatalogEntry.then(primaryOnCallGetCatalogEntry => primaryOnCallGetCatalogEntry.id),
aliases: [
"primary",
"pd-primary-on-call",
],
});
import pulumi
import pulumi_incident as incident
schedule = incident.get_catalog_type(type_name="Schedule")
primary_on_call = incident.get_schedule(name="Primary on-call")
# incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
# external ID.
primary_on_call_get_catalog_entry = incident.get_catalog_entry(catalog_type_id=schedule.id,
identifier=primary_on_call.id)
primary_on_call_catalog_entry_aliases = incident.CatalogEntryAliases("primary_on_call",
entry_id=primary_on_call_get_catalog_entry.id,
aliases=[
"primary",
"pd-primary-on-call",
])
package main
import (
"github.com/incident-io/pulumi-incident/sdk/go/incident"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
schedule, err := incident.GetCatalogType(ctx, &incident.LookupCatalogTypeArgs{
TypeName: pulumi.StringRef("Schedule"),
}, nil)
if err != nil {
return err
}
primaryOnCall, err := incident.GetSchedule(ctx, &incident.LookupScheduleArgs{
Name: pulumi.StringRef("Primary on-call"),
}, nil)
if err != nil {
return err
}
// incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
// external ID.
primaryOnCallGetCatalogEntry, err := incident.GetCatalogEntry(ctx, &incident.LookupCatalogEntryArgs{
CatalogTypeId: schedule.Id,
Identifier: primaryOnCall.Id,
}, nil)
if err != nil {
return err
}
_, err = incident.NewCatalogEntryAliases(ctx, "primary_on_call", &incident.CatalogEntryAliasesArgs{
EntryId: pulumi.String(primaryOnCallGetCatalogEntry.Id),
Aliases: pulumi.StringArray{
pulumi.String("primary"),
pulumi.String("pd-primary-on-call"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Incident = Pulumi.Incident;
return await Deployment.RunAsync(() =>
{
var schedule = Incident.GetCatalogType.Invoke(new()
{
TypeName = "Schedule",
});
var primaryOnCall = Incident.GetSchedule.Invoke(new()
{
Name = "Primary on-call",
});
// incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
// external ID.
var primaryOnCallGetCatalogEntry = Incident.GetCatalogEntry.Invoke(new()
{
CatalogTypeId = schedule.Apply(getCatalogTypeResult => getCatalogTypeResult.Id),
Identifier = primaryOnCall.Apply(getScheduleResult => getScheduleResult.Id),
});
var primaryOnCallCatalogEntryAliases = new Incident.CatalogEntryAliases("primary_on_call", new()
{
EntryId = primaryOnCallGetCatalogEntry.Apply(getCatalogEntryResult => getCatalogEntryResult.Id),
Aliases = new[]
{
"primary",
"pd-primary-on-call",
},
});
});
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.inputs.GetScheduleArgs;
import com.pulumi.incident.inputs.GetCatalogEntryArgs;
import com.pulumi.incident.CatalogEntryAliases;
import com.pulumi.incident.CatalogEntryAliasesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 schedule = IncidentFunctions.getCatalogType(GetCatalogTypeArgs.builder()
.typeName("Schedule")
.build());
final var primaryOnCall = IncidentFunctions.getSchedule(GetScheduleArgs.builder()
.name("Primary on-call")
.build());
// incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
// external ID.
final var primaryOnCallGetCatalogEntry = IncidentFunctions.getCatalogEntry(GetCatalogEntryArgs.builder()
.catalogTypeId(schedule.id())
.identifier(primaryOnCall.id())
.build());
var primaryOnCallCatalogEntryAliases = new CatalogEntryAliases("primaryOnCallCatalogEntryAliases", CatalogEntryAliasesArgs.builder()
.entryId(primaryOnCallGetCatalogEntry.id())
.aliases(
"primary",
"pd-primary-on-call")
.build());
}
}
resources:
primaryOnCallCatalogEntryAliases:
type: incident:CatalogEntryAliases
name: primary_on_call
properties:
entryId: ${primaryOnCallGetCatalogEntry.id}
aliases:
- primary
- pd-primary-on-call
variables:
schedule:
fn::invoke:
function: incident:getCatalogType
arguments:
typeName: Schedule
primaryOnCall:
fn::invoke:
function: incident:getSchedule
arguments:
name: Primary on-call
# incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
# external ID.
primaryOnCallGetCatalogEntry:
fn::invoke:
function: incident:getCatalogEntry
arguments:
catalogTypeId: ${schedule.id}
identifier: ${primaryOnCall.id}
pulumi {
required_providers {
incident = {
source = "pulumi/incident"
}
}
}
data "incident_getcatalogtype" "schedule" {
type_name = "Schedule"
}
data "incident_getschedule" "primaryOnCall" {
name = "Primary on-call"
}
data "incident_getcatalogentry" "primaryOnCallGetCatalogEntry" {
catalog_type_id = data.incident_getcatalogtype.schedule.id
identifier = data.incident_getschedule.primaryOnCall.id
}
resource "incident_catalogentryaliases" "primary_on_call" {
entry_id = data.incident_getcatalogentry.primaryOnCallGetCatalogEntry.id
aliases = ["primary", "pd-primary-on-call"]
}
# incident.io syncs a catalog entry for each schedule, with the schedule's ID as its
# external ID.
Create CatalogEntryAliases Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogEntryAliases(name: string, args: CatalogEntryAliasesArgs, opts?: CustomResourceOptions);@overload
def CatalogEntryAliases(resource_name: str,
args: CatalogEntryAliasesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogEntryAliases(resource_name: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[Sequence[str]] = None,
entry_id: Optional[str] = None)func NewCatalogEntryAliases(ctx *Context, name string, args CatalogEntryAliasesArgs, opts ...ResourceOption) (*CatalogEntryAliases, error)public CatalogEntryAliases(string name, CatalogEntryAliasesArgs args, CustomResourceOptions? opts = null)
public CatalogEntryAliases(String name, CatalogEntryAliasesArgs args)
public CatalogEntryAliases(String name, CatalogEntryAliasesArgs args, CustomResourceOptions options)
type: incident:CatalogEntryAliases
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "incident_catalog_entry_aliases" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CatalogEntryAliasesArgs
- 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 CatalogEntryAliasesArgs
- 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 CatalogEntryAliasesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogEntryAliasesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogEntryAliasesArgs
- 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 catalogEntryAliasesResource = new Incident.CatalogEntryAliases("catalogEntryAliasesResource", new()
{
Aliases = new[]
{
"string",
},
EntryId = "string",
});
example, err := incident.NewCatalogEntryAliases(ctx, "catalogEntryAliasesResource", &incident.CatalogEntryAliasesArgs{
Aliases: pulumi.StringArray{
pulumi.String("string"),
},
EntryId: pulumi.String("string"),
})
resource "incident_catalog_entry_aliases" "catalogEntryAliasesResource" {
lifecycle {
create_before_destroy = true
}
aliases = ["string"]
entry_id = "string"
}
var catalogEntryAliasesResource = new CatalogEntryAliases("catalogEntryAliasesResource", CatalogEntryAliasesArgs.builder()
.aliases("string")
.entryId("string")
.build());
catalog_entry_aliases_resource = incident.CatalogEntryAliases("catalogEntryAliasesResource",
aliases=["string"],
entry_id="string")
const catalogEntryAliasesResource = new incident.CatalogEntryAliases("catalogEntryAliasesResource", {
aliases: ["string"],
entryId: "string",
});
type: incident:CatalogEntryAliases
properties:
aliases:
- string
entryId: string
CatalogEntryAliases Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CatalogEntryAliases resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogEntryAliases resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CatalogEntryAliases Resource
Get an existing CatalogEntryAliases resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CatalogEntryAliasesState, opts?: CustomResourceOptions): CatalogEntryAliases@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[Sequence[str]] = None,
entry_id: Optional[str] = None) -> CatalogEntryAliasesfunc GetCatalogEntryAliases(ctx *Context, name string, id IDInput, state *CatalogEntryAliasesState, opts ...ResourceOption) (*CatalogEntryAliases, error)public static CatalogEntryAliases Get(string name, Input<string> id, CatalogEntryAliasesState? state, CustomResourceOptions? opts = null)public static CatalogEntryAliases get(String name, Output<String> id, CatalogEntryAliasesState state, CustomResourceOptions options)resources: _: type: incident:CatalogEntryAliases get: id: ${id}import {
to = incident_catalog_entry_aliases.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Import
Import is supported using an import block or the pulumi import command:
The pulumi import command can be used, for example:
Import the custom aliases of a catalog entry, by the entry’s ID
$ pulumi import incident:index/catalogEntryAliases:CatalogEntryAliases example 01HXYZ
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- incident incident-io/pulumi-incident
- License
- MIT
- Notes
- This Pulumi package is based on the
incidentTerraform Provider.
published on Wednesday, Nov 4, 2026 by incident-io