Skip to content

GCP.ChromeManagement reference

Source: src/GCP/ChromeManagement/CustomersConnectorConfig.ts

A Chrome Management connector config (customers/{customer}/connectorConfigs/{connector_config}).

Connector configs have no labels field, so Alchemy stamps ownership into displayName for list / nuke. Parent, connector config id, and type are identity — changing any of them replaces the config. Display name and details update in place. Create requires a Chrome Enterprise customer the caller can administer.

CustomersConnectorConfig: Creating a Connector Config

Section titled “CustomersConnectorConfig: Creating a Connector Config”

Pub/Sub reporting connector

const topic = yield* GCP.PubSub.Topic("chrome-events", {});
const config = yield* GCP.ChromeManagement.CustomersConnectorConfig(
"Reporting",
{
parent: "customers/my_customer",
type: "REPORTING",
displayName: "Alchemy reporting",
details: {
pubSubConfig: {
topicFullPath: topic.name,
reportingSettings: {
enabledDefaultEvents: ["ALL_DEFAULT_EVENTS"],
},
},
},
},
);

Device trust connector

const config = yield* GCP.ChromeManagement.CustomersConnectorConfig(
"Trust",
{
parent: "customers/C01234567",
type: "DEVICE_TRUST",
displayName: "Okta device trust",
details: {
deviceTrustConfig: {
serviceProvider: "OKTA",
urlMatchers: ["https://login.example.com"],
serviceAccounts: ["trust@example.com"],
scope: "BROWSERS_ONLY",
},
},
},
);

CustomersConnectorConfig: Updating a Connector Config

Section titled “CustomersConnectorConfig: Updating a Connector Config”
const config = yield* GCP.ChromeManagement.CustomersConnectorConfig(
"Reporting",
{
parent: "customers/my_customer",
type: "REPORTING",
displayName: "Alchemy reporting (prod)",
details: {
pubSubConfig: {
topicFullPath: topic.name,
reportingSettings: {
enabledDefaultEvents: ["BROWSER_CRASH_EVENT"],
enabledOptInEvents: ["ALL_OPT_IN_EVENTS"],
},
},
},
},
);