box-node-sdk

ShieldInformationBarrierSegmentsManager

Get shield information barrier segment with specified ID

Retrieves shield information barrier segment based on provided ID..

This operation is performed by calling function getShieldInformationBarrierSegmentById.

See the endpoint docs at API Reference.

await client.shieldInformationBarrierSegments.getShieldInformationBarrierSegmentById(
  segmentId,
);

Arguments

Returns

This function returns a value of type ShieldInformationBarrierSegment.

Returns the shield information barrier segment object.

Delete shield information barrier segment

Deletes the shield information barrier segment based on provided ID.

This operation is performed by calling function deleteShieldInformationBarrierSegmentById.

See the endpoint docs at API Reference.

await client.shieldInformationBarrierSegments.deleteShieldInformationBarrierSegmentById(
  segmentId,
);

Arguments

Returns

This function returns a value of type undefined.

Empty body in response.

Update shield information barrier segment with specified ID

Updates the shield information barrier segment based on provided ID..

This operation is performed by calling function updateShieldInformationBarrierSegmentById.

See the endpoint docs at API Reference.

await client.shieldInformationBarrierSegments.updateShieldInformationBarrierSegmentById(
  segmentId,
  {
    requestBody: {
      description: updatedSegmentDescription,
    } satisfies UpdateShieldInformationBarrierSegmentByIdRequestBody,
  } satisfies UpdateShieldInformationBarrierSegmentByIdOptionalsInput,
);

Arguments

Returns

This function returns a value of type ShieldInformationBarrierSegment.

Returns the updated shield information barrier segment object.

List shield information barrier segments

Retrieves a list of shield information barrier segment objects for the specified Information Barrier ID.

This operation is performed by calling function getShieldInformationBarrierSegments.

See the endpoint docs at API Reference.

await client.shieldInformationBarrierSegments.getShieldInformationBarrierSegments(
  {
    shieldInformationBarrierId: barrierId,
  } satisfies GetShieldInformationBarrierSegmentsQueryParams,
);

Arguments

Returns

This function returns a value of type ShieldInformationBarrierSegments.

Returns a paginated list of shield information barrier segment objects.

Create shield information barrier segment

Creates a shield information barrier segment.

This operation is performed by calling function createShieldInformationBarrierSegment.

See the endpoint docs at API Reference.

await client.shieldInformationBarrierSegments.createShieldInformationBarrierSegment(
  {
    shieldInformationBarrier: {
      id: barrierId,
      type: 'shield_information_barrier' as ShieldInformationBarrierBaseTypeField,
    } satisfies ShieldInformationBarrierBase,
    name: segmentName,
    description: segmentDescription,
  } satisfies CreateShieldInformationBarrierSegmentRequestBody,
);

Arguments

Returns

This function returns a value of type ShieldInformationBarrierSegment.

Returns a new shield information barrier segment object.