|
| 1 | +# WebService::Fastly::EnabledProductsApi |
| 2 | + |
| 3 | +## Load the API package |
| 4 | +```perl |
| 5 | +use WebService::Fastly::Object::EnabledProductsApi; |
| 6 | +``` |
| 7 | + |
| 8 | +All URIs are relative to *https://api.fastly.com* |
| 9 | + |
| 10 | +Method | HTTP request | Description |
| 11 | +------------- | ------------- | ------------- |
| 12 | +[**disable_product**](EnabledProductsApi.md#disable_product) | **DELETE** /enabled-products/{product_id}/services/{service_id} | Disable a product |
| 13 | +[**enable_product**](EnabledProductsApi.md#enable_product) | **PUT** /enabled-products/{product_id}/services/{service_id} | Enable a product |
| 14 | +[**get_enabled_product**](EnabledProductsApi.md#get_enabled_product) | **GET** /enabled-products/{product_id}/services/{service_id} | Get enabled product |
| 15 | + |
| 16 | + |
| 17 | +# **disable_product** |
| 18 | +> disable_product(product_id => $product_id, service_id => $service_id) |
| 19 | +
|
| 20 | +Disable a product |
| 21 | + |
| 22 | +Disable a product on a service. |
| 23 | + |
| 24 | +### Example |
| 25 | +```perl |
| 26 | +use Data::Dumper; |
| 27 | +use WebService::Fastly::EnabledProductsApi; |
| 28 | +my $api_instance = WebService::Fastly::EnabledProductsApi->new( |
| 29 | + |
| 30 | + # Configure API key authorization: token |
| 31 | + api_key => {'Fastly-Key' => 'YOUR_API_KEY'}, |
| 32 | + # uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 33 | + #api_key_prefix => {'Fastly-Key' => 'Bearer'}, |
| 34 | +); |
| 35 | + |
| 36 | +my $product_id = origin_inspector; # string | |
| 37 | +my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service. |
| 38 | + |
| 39 | +eval { |
| 40 | + $api_instance->disable_product(product_id => $product_id, service_id => $service_id); |
| 41 | +}; |
| 42 | +if ($@) { |
| 43 | + warn "Exception when calling EnabledProductsApi->disable_product: $@\n"; |
| 44 | +} |
| 45 | +``` |
| 46 | + |
| 47 | +### Parameters |
| 48 | + |
| 49 | +Name | Type | Description | Notes |
| 50 | +------------- | ------------- | ------------- | ------------- |
| 51 | + **product_id** | **string**| | |
| 52 | + **service_id** | **string**| Alphanumeric string identifying the service. | |
| 53 | + |
| 54 | +### Return type |
| 55 | + |
| 56 | +void (empty response body) |
| 57 | + |
| 58 | +### Authorization |
| 59 | + |
| 60 | +[token](../README.md#token) |
| 61 | + |
| 62 | +### HTTP request headers |
| 63 | + |
| 64 | + - **Content-Type**: Not defined |
| 65 | + - **Accept**: Not defined |
| 66 | + |
| 67 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 68 | + |
| 69 | +# **enable_product** |
| 70 | +> EnabledProduct enable_product(product_id => $product_id, service_id => $service_id) |
| 71 | +
|
| 72 | +Enable a product |
| 73 | + |
| 74 | +Enable a product on a service. |
| 75 | + |
| 76 | +### Example |
| 77 | +```perl |
| 78 | +use Data::Dumper; |
| 79 | +use WebService::Fastly::EnabledProductsApi; |
| 80 | +my $api_instance = WebService::Fastly::EnabledProductsApi->new( |
| 81 | + |
| 82 | + # Configure API key authorization: token |
| 83 | + api_key => {'Fastly-Key' => 'YOUR_API_KEY'}, |
| 84 | + # uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 85 | + #api_key_prefix => {'Fastly-Key' => 'Bearer'}, |
| 86 | +); |
| 87 | + |
| 88 | +my $product_id = origin_inspector; # string | |
| 89 | +my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service. |
| 90 | + |
| 91 | +eval { |
| 92 | + my $result = $api_instance->enable_product(product_id => $product_id, service_id => $service_id); |
| 93 | + print Dumper($result); |
| 94 | +}; |
| 95 | +if ($@) { |
| 96 | + warn "Exception when calling EnabledProductsApi->enable_product: $@\n"; |
| 97 | +} |
| 98 | +``` |
| 99 | + |
| 100 | +### Parameters |
| 101 | + |
| 102 | +Name | Type | Description | Notes |
| 103 | +------------- | ------------- | ------------- | ------------- |
| 104 | + **product_id** | **string**| | |
| 105 | + **service_id** | **string**| Alphanumeric string identifying the service. | |
| 106 | + |
| 107 | +### Return type |
| 108 | + |
| 109 | +[**EnabledProduct**](EnabledProduct.md) |
| 110 | + |
| 111 | +### Authorization |
| 112 | + |
| 113 | +[token](../README.md#token) |
| 114 | + |
| 115 | +### HTTP request headers |
| 116 | + |
| 117 | + - **Content-Type**: Not defined |
| 118 | + - **Accept**: application/json |
| 119 | + |
| 120 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 121 | + |
| 122 | +# **get_enabled_product** |
| 123 | +> EnabledProduct get_enabled_product(product_id => $product_id, service_id => $service_id) |
| 124 | +
|
| 125 | +Get enabled product |
| 126 | + |
| 127 | +Get enabled product on a service. |
| 128 | + |
| 129 | +### Example |
| 130 | +```perl |
| 131 | +use Data::Dumper; |
| 132 | +use WebService::Fastly::EnabledProductsApi; |
| 133 | +my $api_instance = WebService::Fastly::EnabledProductsApi->new( |
| 134 | + |
| 135 | + # Configure API key authorization: token |
| 136 | + api_key => {'Fastly-Key' => 'YOUR_API_KEY'}, |
| 137 | + # uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 138 | + #api_key_prefix => {'Fastly-Key' => 'Bearer'}, |
| 139 | +); |
| 140 | + |
| 141 | +my $product_id = origin_inspector; # string | |
| 142 | +my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service. |
| 143 | + |
| 144 | +eval { |
| 145 | + my $result = $api_instance->get_enabled_product(product_id => $product_id, service_id => $service_id); |
| 146 | + print Dumper($result); |
| 147 | +}; |
| 148 | +if ($@) { |
| 149 | + warn "Exception when calling EnabledProductsApi->get_enabled_product: $@\n"; |
| 150 | +} |
| 151 | +``` |
| 152 | + |
| 153 | +### Parameters |
| 154 | + |
| 155 | +Name | Type | Description | Notes |
| 156 | +------------- | ------------- | ------------- | ------------- |
| 157 | + **product_id** | **string**| | |
| 158 | + **service_id** | **string**| Alphanumeric string identifying the service. | |
| 159 | + |
| 160 | +### Return type |
| 161 | + |
| 162 | +[**EnabledProduct**](EnabledProduct.md) |
| 163 | + |
| 164 | +### Authorization |
| 165 | + |
| 166 | +[token](../README.md#token) |
| 167 | + |
| 168 | +### HTTP request headers |
| 169 | + |
| 170 | + - **Content-Type**: Not defined |
| 171 | + - **Accept**: application/json |
| 172 | + |
| 173 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 174 | + |
0 commit comments