Deletes a network from the application.
If receive an error "Authorization Denied", check policy in Access Management.
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.integration.networks.delete("network-id-123");
console.log(result); // Successfully Removed
Modifies an existing network's properties.
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.integration.networks.edit("network-id-123", { name: "Updated Network" });
console.log(result); // Network Successfully Updated
Retrieves detailed information about a specific network.
https://help.tago.io/portal/en/kb/articles/125-network-integration Network Integration
If receive an error "Authorization Denied", check policy Network / Access in Access Management.
const result = await Resources.integration.networks.info("network-id-123", ["id", "name"]);
console.log(result); // { id: 'network-id-123', name: 'Network Test', profile: 'profile-id-123' }
Optional
queryObj: NetworkQueryLists all networks from the application with pagination support.
https://help.tago.io/portal/en/kb/articles/125-network-integration Network Integration
If receive an error "Authorization Denied", check policy Network / Access in Access Management.
const result = await Resources.integration.networks.list({
page: 1,
fields: ["id", "name"],
amount: 10,
orderBy: ["name", "asc"]
});
console.log(result); // [ { id: 'network-id-123', name: 'Network Test' } ]
Creates a new token for a network.
https://help.tago.io/portal/en/kb/articles/468-creating-a-network-integration#Tokens_and_getting_the_devices Tokens and Getting the Devices
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const token = await resources.integration.networks.tokenCreate("network-id-123", {
name: "My Token",
permission: "full"
});
console.log(token); // { token: 'token-value', name: 'My Token', network: 'network-id-123' }
Deletes a network token.
https://help.tago.io/portal/en/kb/articles/468-creating-a-network-integration#Tokens_and_getting_the_devices Tokens and Getting the Devices
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.integration.networks.tokenDelete("token-123");
console.log(result); // Token Successfully Removed
Optional
queryObj: ListTokenQueryLists all tokens for a network with pagination support.
https://help.tago.io/portal/en/kb/articles/468-creating-a-network-integration#Tokens_and_getting_the_devices Tokens and Getting the Devices
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.integration.networks.tokenList("network-id-123", {
page: 1,
fields: ["name", "token"]
});
console.log(result); // [ { name: 'Token #1', token: 'token-value' } ]
Description
Creates a new network in the application.
See
https://help.tago.io/portal/en/kb/articles/468-creating-a-network-integration Creating a Network Integration
Example