Skip to content

AccessTag

Source: src/Cloudflare/Access/Tag.ts

A Cloudflare Zero Trust Access tag. Tags are plain labels that can be attached to Access applications to group and filter them.

The tag’s name is its identity — there is nothing to update in place, so renaming replaces the tag.

Tag with a generated name

const tag = yield* Cloudflare.AccessTag("Team", {});

Tag with an explicit name

const tag = yield* Cloudflare.AccessTag("Team", {
name: "platform-team",
});
const tag = yield* Cloudflare.AccessTag("Team", { name: "platform-team" });
const app = yield* Cloudflare.AccessApplication("Dashboard", {
type: "self_hosted",
domain: "dash.example.com",
tags: [tag.name],
});