Skip to content

Latest commit

 

History

History
124 lines (86 loc) · 2.81 KB

ProductWebsocketsApi.md

File metadata and controls

124 lines (86 loc) · 2.81 KB

Fastly.ProductWebsocketsApi

const apiInstance = new Fastly.ProductWebsocketsApi();

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
disableProductWebsockets DELETE /enabled-products/v1/websockets/services/{service_id} Disable product
enableProductWebsockets PUT /enabled-products/v1/websockets/services/{service_id} Enable product
getProductWebsockets GET /enabled-products/v1/websockets/services/{service_id} Get product enablement status

disableProductWebsockets

disableProductWebsockets({ service_id })

Disable the Websockets product on a service.

Example

const options = {
  service_id: "service_id_example", // required
};

apiInstance.disableProductWebsockets(options)
  .then(() => {
    console.log('API called successfully.');
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
service_id String Alphanumeric string identifying the service.

Return type

null (empty response body)

enableProductWebsockets

enableProductWebsockets({ service_id })

Enable the WebSockets product on a service.

Example

const options = {
  service_id: "service_id_example", // required
};

apiInstance.enableProductWebsockets(options)
  .then((data) => {
    console.log(data, "API called successfully.");
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
service_id String Alphanumeric string identifying the service.

Return type

WebsocketsResponseBodyEnable

getProductWebsockets

getProductWebsockets({ service_id })

Get the enablement status of the WebSockets product on a service.

Example

const options = {
  service_id: "service_id_example", // required
};

apiInstance.getProductWebsockets(options)
  .then((data) => {
    console.log(data, "API called successfully.");
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
service_id String Alphanumeric string identifying the service.

Return type

WebsocketsResponseBodyEnable

[Back to top] [Back to API list] [Back to README]