Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 2.77 KB

LegacyWafUpdateStatusApi.md

File metadata and controls

100 lines (73 loc) · 2.77 KB

Fastly.LegacyWafUpdateStatusApi

const apiInstance = new Fastly.LegacyWafUpdateStatusApi();

Methods

Note

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

Method HTTP request Description
getWafUpdateStatus GET /service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id} Get the status of a WAF update
listWafUpdateStatuses GET /service/{service_id}/wafs/{firewall_id}/update_statuses List update statuses

getWafUpdateStatus

getWafUpdateStatus({ service_id, firewall_id, update_status_id })

Get a specific update status object for a particular service and firewall object.

Example

const options = {
  service_id: "service_id_example", // required
  firewall_id: "firewall_id_example", // required
  update_status_id: "update_status_id_example", // required
};

apiInstance.getWafUpdateStatus(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.
firewall_id String Alphanumeric string identifying a Firewall.
update_status_id String Alphanumeric string identifying a WAF update status.

Return type

Object

listWafUpdateStatuses

listWafUpdateStatuses({ service_id, firewall_id, [page_number, ][page_size, ][include] })

List all update statuses for a particular service and firewall object.

Example

const options = {
  service_id: "service_id_example", // required
  firewall_id: "firewall_id_example", // required
  page_number: 1,
  page_size: 20,
  include: waf,
};

apiInstance.listWafUpdateStatuses(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.
firewall_id String Alphanumeric string identifying a Firewall.
page_number Number Current page. [optional]
page_size Number Number of records per page. [optional] [defaults to 20]
include String Include relationships. Optional, comma separated values. Permitted values: waf. [optional]

Return type

Object

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