Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 2.77 KB

information-barriers.md

File metadata and controls

80 lines (58 loc) · 2.77 KB

Information Barriers

Get shield information barrier with specified ID

Get shield information barrier based on provided ID by shieldInformationBarriers.getById(options, callback) method.

const barrier = await client.shieldInformationBarriers.getById({
    shield_information_barrier_id: 12345,
});
console.log(
    `Shield information barrier id ${barrier.id}`
);

Get all shield information barriers

Retrieves a list of shield information barrier objects for the enterprise of JWT by shieldInformationBarriers.getAll(options, callback) method.

const result = await client.shieldInformationBarriers.getAll();
console.log(`There are ${result.entries.length} shield information barriers`);

Update shield information barrier status

Change status of shield information barrier with the specified ID. shieldInformationBarriers.changeStatusById(body, callback) method.

const barrier = await client.shieldInformationBarriers.changeStatusById({
    id: 12345,
    status: 'pending',
});
console.log(
    `Shield information barrier id ${barrier.id} status is ${barrier.status}`
);

Create shield information barrier

Creates a shield information barrier to separate individuals/groups within the same firm and prevents confidential information passing between them.shieldInformationBarriers.create(options, callback) method.

const barrier = await client.shieldInformationBarriers.create({
    enterprise: {
        id: '12345',
        type: 'enterprise',
    },
});
console.log(
    `Shield information barrier id ${barrier.id} created`
);