Skip to content

Latest commit

 

History

History
163 lines (116 loc) · 4.66 KB

File metadata and controls

163 lines (116 loc) · 4.66 KB

Fastly::ProductDomainInspectorApi

require 'fastly'
api_instance = Fastly::ProductDomainInspectorApi.new

Methods

Note

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

Method HTTP request Description
disable_product_domain_inspector DELETE /enabled-products/v1/domain_inspector/services/{service_id} Disable product
enable_product_domain_inspector PUT /enabled-products/v1/domain_inspector/services/{service_id} Enable product
get_product_domain_inspector GET /enabled-products/v1/domain_inspector/services/{service_id} Get product enablement status
get_services_product_domain_inspector GET /enabled-products/v1/domain_inspector/services Get services with product enabled

disable_product_domain_inspector()

disable_product_domain_inspector(opts) # Disable product

Disable the Domain Inspector product on a service.

Examples

api_instance = Fastly::ProductDomainInspectorApi.new
opts = {
    service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}

begin
  # Disable product
  api_instance.disable_product_domain_inspector(opts)
rescue Fastly::ApiError => e
  puts "Error when calling ProductDomainInspectorApi->disable_product_domain_inspector: #{e}"
end

Options

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

Return type

nil (empty response body)

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

enable_product_domain_inspector()

enable_product_domain_inspector(opts): <DomainInspectorResponseBodyEnable> # Enable product

Enable the Domain Inspector product on a service.

Examples

api_instance = Fastly::ProductDomainInspectorApi.new
opts = {
    service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}

begin
  # Enable product
  result = api_instance.enable_product_domain_inspector(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling ProductDomainInspectorApi->enable_product_domain_inspector: #{e}"
end

Options

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

Return type

DomainInspectorResponseBodyEnable

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

get_product_domain_inspector()

get_product_domain_inspector(opts): <DomainInspectorResponseBodyEnable> # Get product enablement status

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

Examples

api_instance = Fastly::ProductDomainInspectorApi.new
opts = {
    service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}

begin
  # Get product enablement status
  result = api_instance.get_product_domain_inspector(opts)
  p result
rescue Fastly::ApiError => e
  puts "Error when calling ProductDomainInspectorApi->get_product_domain_inspector: #{e}"
end

Options

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

Return type

DomainInspectorResponseBodyEnable

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

get_services_product_domain_inspector()

get_services_product_domain_inspector: <DomainInspectorResponseBodyGetAllServices> # Get services with product enabled

Get all the services which have the Domain Inspector product enabled.

Examples

api_instance = Fastly::ProductDomainInspectorApi.new

begin
  # Get services with product enabled
  result = api_instance.get_services_product_domain_inspector
  p result
rescue Fastly::ApiError => e
  puts "Error when calling ProductDomainInspectorApi->get_services_product_domain_inspector: #{e}"
end

Options

This endpoint does not need any parameter.

Return type

DomainInspectorResponseBodyGetAllServices

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