Skip to content

Latest commit

 

History

History
124 lines (86 loc) · 2.96 KB

ProductOriginInspectorApi.md

File metadata and controls

124 lines (86 loc) · 2.96 KB

Fastly.ProductOriginInspectorApi

const apiInstance = new Fastly.ProductOriginInspectorApi();

Methods

Note

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

Method HTTP request Description
disableProductOriginInspector DELETE /enabled-products/v1/origin_inspector/services/{service_id} Disable product
enableProductOriginInspector PUT /enabled-products/v1/origin_inspector/services/{service_id} Enable product
getProductOriginInspector GET /enabled-products/v1/origin_inspector/services/{service_id} Get product enablement status

disableProductOriginInspector

disableProductOriginInspector({ service_id })

Disable the Origin Inspector product on a service.

Example

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

apiInstance.disableProductOriginInspector(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)

enableProductOriginInspector

enableProductOriginInspector({ service_id })

Enable the Origin Inspector product on a service.

Example

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

apiInstance.enableProductOriginInspector(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

OriginInspectorResponseBodyEnable

getProductOriginInspector

getProductOriginInspector({ service_id })

Get the enablement status of the Origin Inspector product on a service.

Example

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

apiInstance.getProductOriginInspector(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

OriginInspectorResponseBodyEnable

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