Skip to content

Latest commit

 

History

History
163 lines (116 loc) · 4.49 KB

File metadata and controls

163 lines (116 loc) · 4.49 KB

Fastly::ProductApiDiscoveryApi

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

Methods

Note

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

Method HTTP request Description
disable_product_api_discovery DELETE /enabled-products/v1/api_discovery/services/{service_id} Disable product
enable_product_api_discovery PUT /enabled-products/v1/api_discovery/services/{service_id} Enable product
get_product_api_discovery GET /enabled-products/v1/api_discovery/services/{service_id} Get product enablement status
get_services_product_api_discovery GET /enabled-products/v1/api_discovery/services Get services with product enabled

disable_product_api_discovery()

disable_product_api_discovery(opts) # Disable product

Disable the API Discovery product on a service.

Examples

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

begin
  # Disable product
  api_instance.disable_product_api_discovery(opts)
rescue Fastly::ApiError => e
  puts "Error when calling ProductApiDiscoveryApi->disable_product_api_discovery: #{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_api_discovery()

enable_product_api_discovery(opts): <ApiDiscoveryResponseEnable> # Enable product

Enable the API Discovery product on a service.

Examples

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

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

Options

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

Return type

ApiDiscoveryResponseEnable

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

get_product_api_discovery()

get_product_api_discovery(opts): <ApiDiscoveryResponseEnable> # Get product enablement status

Get the enablement status of the API Discovery product on a service.

Examples

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

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

Options

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

Return type

ApiDiscoveryResponseEnable

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

get_services_product_api_discovery()

get_services_product_api_discovery: <ApiDiscoveryResponseBodyGetAllServices> # Get services with product enabled

Get all the services for a customer that has the API Discovery product enabled.

Examples

api_instance = Fastly::ProductApiDiscoveryApi.new

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

Options

This endpoint does not need any parameter.

Return type

ApiDiscoveryResponseBodyGetAllServices

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