const apiInstance = new Fastly.ProductOriginInspectorApi();
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({ service_id })
Disable the Origin Inspector product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.disableProductOriginInspector(options)
.then(() => {
console.log('API called successfully.');
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |
null (empty response body)
enableProductOriginInspector({ service_id })
Enable the Origin Inspector product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.enableProductOriginInspector(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |
OriginInspectorResponseBodyEnable
getProductOriginInspector({ service_id })
Get the enablement status of the Origin Inspector product on a service.
const options = {
service_id: "service_id_example", // required
};
apiInstance.getProductOriginInspector(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
service_id | String | Alphanumeric string identifying the service. |