require 'fastly'
api_instance = Fastly::ProductApiDiscoveryApi.newNote
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(opts) # Disable productDisable the API Discovery product on a service.
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| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
enable_product_api_discovery(opts): <ApiDiscoveryResponseEnable> # Enable productEnable the API Discovery product on a service.
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| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
[Back to top] [Back to API list] [Back to README]
get_product_api_discovery(opts): <ApiDiscoveryResponseEnable> # Get product enablement statusGet the enablement status of the API Discovery product on a service.
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| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
[Back to top] [Back to API list] [Back to README]
get_services_product_api_discovery: <ApiDiscoveryResponseBodyGetAllServices> # Get services with product enabledGet all the services for a customer that has the API Discovery product enabled.
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}"
endThis endpoint does not need any parameter.