fastly 5.3.1 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/Gemfile.lock +1 -1
- data/README.md +85 -63
- data/docs/AclEntry.md +1 -1
- data/docs/AclEntryApi.md +176 -0
- data/docs/AclEntryResponse.md +1 -1
- data/docs/ApexRedirectApi.md +56 -0
- data/docs/{BillingEstimateResponseAllOfLines.md → BillingEstimateLines.md} +2 -2
- data/docs/{BillingEstimateResponseAllOfLine.md → BillingEstimateLinesLineItems.md} +1 -1
- data/docs/BillingEstimateResponse.md +1 -1
- data/docs/{BillingResponseAllOf.md → BillingResponseItemItemsData.md} +1 -1
- data/docs/BillingResponseLineItem.md +1 -1
- data/docs/BillingStatus.md +1 -1
- data/docs/BulkUpdateAclEntry.md +1 -1
- data/docs/ClientKey.md +12 -0
- data/docs/ContactApi.md +50 -0
- data/docs/Content.md +2 -2
- data/docs/ContentApi.md +52 -0
- data/docs/DirectorApi.md +42 -0
- data/docs/DomainInspector.md +12 -0
- data/docs/DomainInspectorEntry.md +11 -0
- data/docs/DomainInspectorEntryDimensions.md +12 -0
- data/docs/DomainInspectorHistoricalApi.md +72 -0
- data/docs/DomainInspectorMeasurements.md +71 -0
- data/docs/DomainInspectorRealtimeApi.md +132 -0
- data/docs/DomainInspectorRealtimeEntry.md +12 -0
- data/docs/EventAttributes.md +1 -1
- data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
- data/docs/HistoricalDomains.md +13 -0
- data/docs/HistoricalDomainsData.md +11 -0
- data/docs/HistoricalDomainsMeta.md +18 -0
- data/docs/HistoricalDomainsMetaFilters.md +12 -0
- data/docs/HistoricalDomainsResponse.md +13 -0
- data/docs/HistoricalDomainsResponseAllOf.md +10 -0
- data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
- data/docs/HistoricalOriginsResponse.md +13 -0
- data/docs/HistoricalOriginsResponseAllOf.md +10 -0
- data/docs/IamRolesApi.md +157 -0
- data/docs/IamServiceGroupsApi.md +157 -0
- data/docs/IamUserGroupsApi.md +315 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/{BillingEstimateResponseAllOf.md → InlineResponse2007.md} +2 -2
- data/docs/InlineResponse400.md +10 -0
- data/docs/LegacyWafConfigurationSet.md +11 -0
- data/docs/LegacyWafConfigurationSetsApi.md +125 -0
- data/docs/LegacyWafFirewall.md +18 -0
- data/docs/LegacyWafFirewallApi.md +352 -0
- data/docs/LegacyWafOwasp.md +38 -0
- data/docs/LegacyWafOwaspApi.md +138 -0
- data/docs/LegacyWafRule.md +14 -0
- data/docs/LegacyWafRuleApi.md +184 -0
- data/docs/LegacyWafRuleStatus.md +12 -0
- data/docs/LegacyWafRuleStatusApi.md +202 -0
- data/docs/LegacyWafRuleset.md +11 -0
- data/docs/LegacyWafRulesetApi.md +136 -0
- data/docs/LegacyWafTag.md +10 -0
- data/docs/LegacyWafTagApi.md +58 -0
- data/docs/LegacyWafUpdateStatus.md +15 -0
- data/docs/LegacyWafUpdateStatusApi.md +102 -0
- data/docs/{BillingResponseLineItemAllOf.md → LineItemData.md} +2 -2
- data/docs/LineItemDataReadOnlyInvoiceId.md +9 -0
- data/docs/LoggingKafkaApi.md +42 -0
- data/docs/LoggingKinesisApi.md +42 -0
- data/docs/OriginInspector.md +12 -0
- data/docs/OriginInspectorDimensions.md +12 -0
- data/docs/OriginInspectorEntry.md +11 -0
- data/docs/OriginInspectorHistorical.md +13 -0
- data/docs/OriginInspectorHistoricalApi.md +72 -0
- data/docs/OriginInspectorHistoricalData.md +11 -0
- data/docs/OriginInspectorHistoricalMeta.md +18 -0
- data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
- data/docs/OriginInspectorMeasurements.md +161 -0
- data/docs/OriginInspectorRealtimeApi.md +132 -0
- data/docs/OriginInspectorRealtimeEntry.md +12 -0
- data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
- data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
- data/docs/OriginInspectorValues.md +161 -0
- data/docs/PaginationCursorMeta.md +11 -0
- data/docs/ReadOnlyServiceId.md +9 -0
- data/docs/ReadOnlyVersion.md +9 -0
- data/docs/RealtimeEntry.md +2 -2
- data/docs/RealtimeEntryAggregated.md +227 -0
- data/docs/RealtimeEntryRecorded.md +9 -0
- data/docs/RealtimeMeasurements.md +1 -1
- data/docs/RecordedTimestamp.md +9 -0
- data/docs/RequestSettingsApi.md +40 -0
- data/docs/ResponseObjectApi.md +82 -0
- data/docs/SchemasUserResponseReadOnly.md +12 -0
- data/docs/Secret.md +12 -0
- data/docs/SecretResponse.md +13 -0
- data/docs/SecretStore.md +10 -0
- data/docs/SecretStoreApi.md +233 -0
- data/docs/SecretStoreItemApi.md +255 -0
- data/docs/SecretStoreResponse.md +12 -0
- data/docs/ServiceAuthorizationsApi.md +76 -0
- data/docs/SigningKey.md +10 -0
- data/docs/SnippetApi.md +42 -0
- data/docs/SubsequentRequestTimestamp.md +9 -0
- data/docs/SudoApi.md +52 -0
- data/docs/SudoGenericTokenError.md +10 -0
- data/docs/SudoRequest.md +12 -0
- data/docs/SudoResponse.md +10 -0
- data/docs/TokensApi.md +70 -0
- data/docs/{UserResponseAllOf.md → UserResponseReadOnly.md} +1 -1
- data/docs/Values.md +71 -0
- data/docs/WafActiveRulesApi.md +41 -0
- data/lib/fastly/api/acl_entry_api.rb +332 -0
- data/lib/fastly/api/apex_redirect_api.rb +111 -0
- data/lib/fastly/api/contact_api.rb +90 -0
- data/lib/fastly/api/content_api.rb +79 -0
- data/lib/fastly/api/director_api.rb +82 -0
- data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
- data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
- data/lib/fastly/api/iam_roles_api.rb +271 -0
- data/lib/fastly/api/iam_service_groups_api.rb +271 -0
- data/lib/fastly/api/iam_user_groups_api.rb +547 -0
- data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
- data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
- data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
- data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
- data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
- data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
- data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
- data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
- data/lib/fastly/api/logging_kafka_api.rb +82 -0
- data/lib/fastly/api/logging_kinesis_api.rb +82 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
- data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
- data/lib/fastly/api/request_settings_api.rb +75 -0
- data/lib/fastly/api/response_object_api.rb +157 -0
- data/lib/fastly/api/secret_store_api.rb +381 -0
- data/lib/fastly/api/secret_store_item_api.rb +437 -0
- data/lib/fastly/api/service_authorizations_api.rb +126 -0
- data/lib/fastly/api/snippet_api.rb +82 -0
- data/lib/fastly/api/sudo_api.rb +83 -0
- data/lib/fastly/api/tokens_api.rb +122 -0
- data/lib/fastly/api/waf_active_rules_api.rb +75 -0
- data/lib/fastly/configuration.rb +504 -0
- data/lib/fastly/models/acl_entry.rb +1 -1
- data/lib/fastly/models/acl_entry_response.rb +1 -1
- data/lib/fastly/models/{billing_response_all_of.rb → billing_estimate_lines.rb} +4 -4
- data/lib/fastly/models/{billing_estimate_response_all_of_line.rb → billing_estimate_lines_line_items.rb} +3 -3
- data/lib/fastly/models/billing_estimate_response.rb +9 -9
- data/lib/fastly/models/billing_response.rb +1 -1
- data/lib/fastly/models/{billing_estimate_response_all_of.rb → billing_response_item_items_data.rb} +11 -11
- data/lib/fastly/models/billing_response_line_item.rb +2 -2
- data/lib/fastly/models/billing_status.rb +2 -0
- data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
- data/lib/fastly/models/client_key.rb +239 -0
- data/lib/fastly/models/content.rb +8 -4
- data/lib/fastly/models/domain.rb +1 -0
- data/lib/fastly/models/domain_inspector.rb +238 -0
- data/lib/fastly/models/domain_inspector_entry.rb +228 -0
- data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
- data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
- data/lib/fastly/models/event_attributes.rb +4 -2
- data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
- data/lib/fastly/models/events_response.rb +1 -1
- data/lib/fastly/models/historical_domains.rb +249 -0
- data/lib/fastly/models/historical_domains_data.rb +228 -0
- data/lib/fastly/models/historical_domains_meta.rb +297 -0
- data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
- data/lib/fastly/models/historical_domains_response.rb +257 -0
- data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
- data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
- data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
- data/lib/fastly/models/historical_origins_response.rb +257 -0
- data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
- data/lib/fastly/models/inline_response2005.rb +227 -0
- data/lib/fastly/models/inline_response2006.rb +227 -0
- data/lib/fastly/models/inline_response2007.rb +218 -0
- data/lib/fastly/models/inline_response400.rb +250 -0
- data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
- data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
- data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
- data/lib/fastly/models/legacy_waf_rule.rb +257 -0
- data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
- data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
- data/lib/fastly/models/{billing_estimate_response_all_of_lines.rb → legacy_waf_tag.rb} +11 -10
- data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
- data/lib/fastly/models/{billing_response_line_item_all_of.rb → line_item_data.rb} +4 -4
- data/lib/fastly/models/line_item_data_read_only_invoice_id.rb +207 -0
- data/lib/fastly/models/origin_inspector.rb +238 -0
- data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
- data/lib/fastly/models/origin_inspector_entry.rb +228 -0
- data/lib/fastly/models/origin_inspector_historical.rb +249 -0
- data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
- data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
- data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
- data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
- data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
- data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
- data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
- data/lib/fastly/models/origin_inspector_values.rb +1728 -0
- data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
- data/lib/fastly/models/read_only_service_id.rb +207 -0
- data/lib/fastly/models/read_only_version.rb +207 -0
- data/lib/fastly/models/realtime_entry.rb +2 -7
- data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
- data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
- data/lib/fastly/models/realtime_measurements.rb +4 -2
- data/lib/fastly/models/recorded_timestamp.rb +208 -0
- data/lib/fastly/models/schemas_user_response.rb +5 -2
- data/lib/fastly/models/schemas_user_response_read_only.rb +235 -0
- data/lib/fastly/models/secret.rb +238 -0
- data/lib/fastly/models/secret_response.rb +249 -0
- data/lib/fastly/models/secret_store.rb +217 -0
- data/lib/fastly/models/secret_store_response.rb +238 -0
- data/lib/fastly/models/signing_key.rb +218 -0
- data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
- data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
- data/lib/fastly/models/sudo_request.rb +244 -0
- data/lib/fastly/models/sudo_response.rb +217 -0
- data/lib/fastly/models/user.rb +3 -0
- data/lib/fastly/models/user_response.rb +4 -1
- data/lib/fastly/models/{user_response_all_of.rb → user_response_read_only.rb} +3 -3
- data/lib/fastly/models/values.rb +828 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +79 -8
- data/sig.json +1 -1
- metadata +160 -18
@@ -0,0 +1,352 @@
|
|
1
|
+
# Fastly::LegacyWafFirewallApi
|
2
|
+
|
3
|
+
|
4
|
+
```ruby
|
5
|
+
require 'fastly'
|
6
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
7
|
+
```
|
8
|
+
|
9
|
+
## Methods
|
10
|
+
|
11
|
+
| Method | HTTP request | Description |
|
12
|
+
| ------ | ------------ | ----------- |
|
13
|
+
| [**create_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#create_legacy_waf_firewall_service) | **POST** /service/{service_id}/version/{version_id}/wafs | Create a firewall |
|
14
|
+
| [**disable_legacy_waf_firewall**](LegacyWafFirewallApi.md#disable_legacy_waf_firewall) | **PATCH** /wafs/{firewall_id}/disable | Disable a firewall |
|
15
|
+
| [**enable_legacy_waf_firewall**](LegacyWafFirewallApi.md#enable_legacy_waf_firewall) | **PATCH** /wafs/{firewall_id}/enable | Enable a firewall |
|
16
|
+
| [**get_legacy_waf_firewall**](LegacyWafFirewallApi.md#get_legacy_waf_firewall) | **GET** /wafs/{firewall_id} | Get a firewall object |
|
17
|
+
| [**get_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#get_legacy_waf_firewall_service) | **GET** /service/{service_id}/version/{version_id}/wafs/{firewall_id} | Get a firewall |
|
18
|
+
| [**list_legacy_waf_firewalls**](LegacyWafFirewallApi.md#list_legacy_waf_firewalls) | **GET** /wafs | List active firewalls |
|
19
|
+
| [**list_legacy_waf_firewalls_service**](LegacyWafFirewallApi.md#list_legacy_waf_firewalls_service) | **GET** /service/{service_id}/version/{version_id}/wafs | List firewalls |
|
20
|
+
| [**update_legacy_waf_firewall_service**](LegacyWafFirewallApi.md#update_legacy_waf_firewall_service) | **PATCH** /service/{service_id}/version/{version_id}/wafs/{firewall_id} | Update a firewall |
|
21
|
+
|
22
|
+
|
23
|
+
## `create_legacy_waf_firewall_service()`
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
create_legacy_waf_firewall_service(opts): Object # Create a firewall
|
27
|
+
```
|
28
|
+
|
29
|
+
Create a firewall object for a particular service and version.
|
30
|
+
|
31
|
+
### Examples
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
35
|
+
opts = {
|
36
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
37
|
+
version_id: 56, # Integer | Integer identifying a service version.
|
38
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
# Create a firewall
|
43
|
+
result = api_instance.create_legacy_waf_firewall_service(opts)
|
44
|
+
p result
|
45
|
+
rescue Fastly::ApiError => e
|
46
|
+
puts "Error when calling LegacyWafFirewallApi->create_legacy_waf_firewall_service: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Options
|
51
|
+
|
52
|
+
| Name | Type | Description | Notes |
|
53
|
+
| ---- | ---- | ----------- | ----- |
|
54
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
55
|
+
| **version_id** | **Integer** | Integer identifying a service version. | |
|
56
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
57
|
+
|
58
|
+
### Return type
|
59
|
+
|
60
|
+
**Object**
|
61
|
+
|
62
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
63
|
+
[[Back to README]](../../README.md)
|
64
|
+
## `disable_legacy_waf_firewall()`
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
disable_legacy_waf_firewall(opts): Object # Disable a firewall
|
68
|
+
```
|
69
|
+
|
70
|
+
Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action.
|
71
|
+
|
72
|
+
### Examples
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
76
|
+
opts = {
|
77
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
78
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
79
|
+
}
|
80
|
+
|
81
|
+
begin
|
82
|
+
# Disable a firewall
|
83
|
+
result = api_instance.disable_legacy_waf_firewall(opts)
|
84
|
+
p result
|
85
|
+
rescue Fastly::ApiError => e
|
86
|
+
puts "Error when calling LegacyWafFirewallApi->disable_legacy_waf_firewall: #{e}"
|
87
|
+
end
|
88
|
+
```
|
89
|
+
|
90
|
+
### Options
|
91
|
+
|
92
|
+
| Name | Type | Description | Notes |
|
93
|
+
| ---- | ---- | ----------- | ----- |
|
94
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
95
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
96
|
+
|
97
|
+
### Return type
|
98
|
+
|
99
|
+
**Object**
|
100
|
+
|
101
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
102
|
+
[[Back to README]](../../README.md)
|
103
|
+
## `enable_legacy_waf_firewall()`
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
enable_legacy_waf_firewall(opts): Object # Enable a firewall
|
107
|
+
```
|
108
|
+
|
109
|
+
Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action.
|
110
|
+
|
111
|
+
### Examples
|
112
|
+
|
113
|
+
```ruby
|
114
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
115
|
+
opts = {
|
116
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
117
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
118
|
+
}
|
119
|
+
|
120
|
+
begin
|
121
|
+
# Enable a firewall
|
122
|
+
result = api_instance.enable_legacy_waf_firewall(opts)
|
123
|
+
p result
|
124
|
+
rescue Fastly::ApiError => e
|
125
|
+
puts "Error when calling LegacyWafFirewallApi->enable_legacy_waf_firewall: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
### Options
|
130
|
+
|
131
|
+
| Name | Type | Description | Notes |
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
133
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
134
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
135
|
+
|
136
|
+
### Return type
|
137
|
+
|
138
|
+
**Object**
|
139
|
+
|
140
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
141
|
+
[[Back to README]](../../README.md)
|
142
|
+
## `get_legacy_waf_firewall()`
|
143
|
+
|
144
|
+
```ruby
|
145
|
+
get_legacy_waf_firewall(opts): Object # Get a firewall object
|
146
|
+
```
|
147
|
+
|
148
|
+
Get a specific firewall object.
|
149
|
+
|
150
|
+
### Examples
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
154
|
+
opts = {
|
155
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
156
|
+
include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`.
|
157
|
+
}
|
158
|
+
|
159
|
+
begin
|
160
|
+
# Get a firewall object
|
161
|
+
result = api_instance.get_legacy_waf_firewall(opts)
|
162
|
+
p result
|
163
|
+
rescue Fastly::ApiError => e
|
164
|
+
puts "Error when calling LegacyWafFirewallApi->get_legacy_waf_firewall: #{e}"
|
165
|
+
end
|
166
|
+
```
|
167
|
+
|
168
|
+
### Options
|
169
|
+
|
170
|
+
| Name | Type | Description | Notes |
|
171
|
+
| ---- | ---- | ----------- | ----- |
|
172
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
173
|
+
| **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. | [optional] |
|
174
|
+
|
175
|
+
### Return type
|
176
|
+
|
177
|
+
**Object**
|
178
|
+
|
179
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
180
|
+
[[Back to README]](../../README.md)
|
181
|
+
## `get_legacy_waf_firewall_service()`
|
182
|
+
|
183
|
+
```ruby
|
184
|
+
get_legacy_waf_firewall_service(opts): Object # Get a firewall
|
185
|
+
```
|
186
|
+
|
187
|
+
Get a specific firewall object.
|
188
|
+
|
189
|
+
### Examples
|
190
|
+
|
191
|
+
```ruby
|
192
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
193
|
+
opts = {
|
194
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
195
|
+
version_id: 56, # Integer | Integer identifying a service version.
|
196
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
197
|
+
}
|
198
|
+
|
199
|
+
begin
|
200
|
+
# Get a firewall
|
201
|
+
result = api_instance.get_legacy_waf_firewall_service(opts)
|
202
|
+
p result
|
203
|
+
rescue Fastly::ApiError => e
|
204
|
+
puts "Error when calling LegacyWafFirewallApi->get_legacy_waf_firewall_service: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Options
|
209
|
+
|
210
|
+
| Name | Type | Description | Notes |
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
212
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
213
|
+
| **version_id** | **Integer** | Integer identifying a service version. | |
|
214
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
**Object**
|
219
|
+
|
220
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
221
|
+
[[Back to README]](../../README.md)
|
222
|
+
## `list_legacy_waf_firewalls()`
|
223
|
+
|
224
|
+
```ruby
|
225
|
+
list_legacy_waf_firewalls(opts): Object # List active firewalls
|
226
|
+
```
|
227
|
+
|
228
|
+
List all active firewall objects.
|
229
|
+
|
230
|
+
### Examples
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
234
|
+
opts = {
|
235
|
+
filter_rules_rule_id: 'filter_rules_rule_id_example', # String | Limit the returned firewalls to a specific rule ID.
|
236
|
+
page_number: 1, # Integer | Current page.
|
237
|
+
page_size: 20, # Integer | Number of records per page.
|
238
|
+
include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`.
|
239
|
+
}
|
240
|
+
|
241
|
+
begin
|
242
|
+
# List active firewalls
|
243
|
+
result = api_instance.list_legacy_waf_firewalls(opts)
|
244
|
+
p result
|
245
|
+
rescue Fastly::ApiError => e
|
246
|
+
puts "Error when calling LegacyWafFirewallApi->list_legacy_waf_firewalls: #{e}"
|
247
|
+
end
|
248
|
+
```
|
249
|
+
|
250
|
+
### Options
|
251
|
+
|
252
|
+
| Name | Type | Description | Notes |
|
253
|
+
| ---- | ---- | ----------- | ----- |
|
254
|
+
| **filter_rules_rule_id** | **String** | Limit the returned firewalls to a specific rule ID. | [optional] |
|
255
|
+
| **page_number** | **Integer** | Current page. | [optional] |
|
256
|
+
| **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
|
257
|
+
| **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | [optional] |
|
258
|
+
|
259
|
+
### Return type
|
260
|
+
|
261
|
+
**Object**
|
262
|
+
|
263
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
264
|
+
[[Back to README]](../../README.md)
|
265
|
+
## `list_legacy_waf_firewalls_service()`
|
266
|
+
|
267
|
+
```ruby
|
268
|
+
list_legacy_waf_firewalls_service(opts): Object # List firewalls
|
269
|
+
```
|
270
|
+
|
271
|
+
List all firewall objects for a particular service and version.
|
272
|
+
|
273
|
+
### Examples
|
274
|
+
|
275
|
+
```ruby
|
276
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
277
|
+
opts = {
|
278
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
279
|
+
version_id: 56, # Integer | Integer identifying a service version.
|
280
|
+
page_number: 1, # Integer | Current page.
|
281
|
+
page_size: 20, # Integer | Number of records per page.
|
282
|
+
include: 'configuration_set', # String | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`.
|
283
|
+
}
|
284
|
+
|
285
|
+
begin
|
286
|
+
# List firewalls
|
287
|
+
result = api_instance.list_legacy_waf_firewalls_service(opts)
|
288
|
+
p result
|
289
|
+
rescue Fastly::ApiError => e
|
290
|
+
puts "Error when calling LegacyWafFirewallApi->list_legacy_waf_firewalls_service: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
### Options
|
295
|
+
|
296
|
+
| Name | Type | Description | Notes |
|
297
|
+
| ---- | ---- | ----------- | ----- |
|
298
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
299
|
+
| **version_id** | **Integer** | Integer identifying a service version. | |
|
300
|
+
| **page_number** | **Integer** | Current page. | [optional] |
|
301
|
+
| **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
|
302
|
+
| **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | [optional] |
|
303
|
+
|
304
|
+
### Return type
|
305
|
+
|
306
|
+
**Object**
|
307
|
+
|
308
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
309
|
+
[[Back to README]](../../README.md)
|
310
|
+
## `update_legacy_waf_firewall_service()`
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
update_legacy_waf_firewall_service(opts): Object # Update a firewall
|
314
|
+
```
|
315
|
+
|
316
|
+
Update a firewall object for a particular service and version.
|
317
|
+
|
318
|
+
### Examples
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
api_instance = Fastly::LegacyWafFirewallApi.new
|
322
|
+
opts = {
|
323
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
324
|
+
version_id: 56, # Integer | Integer identifying a service version.
|
325
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
326
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
327
|
+
}
|
328
|
+
|
329
|
+
begin
|
330
|
+
# Update a firewall
|
331
|
+
result = api_instance.update_legacy_waf_firewall_service(opts)
|
332
|
+
p result
|
333
|
+
rescue Fastly::ApiError => e
|
334
|
+
puts "Error when calling LegacyWafFirewallApi->update_legacy_waf_firewall_service: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
### Options
|
339
|
+
|
340
|
+
| Name | Type | Description | Notes |
|
341
|
+
| ---- | ---- | ----------- | ----- |
|
342
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
343
|
+
| **version_id** | **Integer** | Integer identifying a service version. | |
|
344
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
345
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
346
|
+
|
347
|
+
### Return type
|
348
|
+
|
349
|
+
**Object**
|
350
|
+
|
351
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
352
|
+
[[Back to README]](../../README.md)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Fastly::LegacyWafOwasp
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **allowed_http_versions** | **String** | Allowed HTTP versions. | [optional][default to 'HTTP/1.0 HTTP/1.1 HTTP/2'] |
|
8
|
+
| **allowed_methods** | **String** | A space-separated list of HTTP method names. | [optional][default to 'GET HEAD POST OPTIONS PUT PATCH DELETE'] |
|
9
|
+
| **allowed_request_content_type** | **String** | Allowed request content types. | [optional][default to 'application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain'] |
|
10
|
+
| **arg_length** | **Integer** | The maximum allowed length of an argument. | [optional][default to 400] |
|
11
|
+
| **arg_name_length** | **Integer** | The maximum allowed argument name length. | [optional][default to 100] |
|
12
|
+
| **combined_file_sizes** | **Integer** | The maximum allowed size of all files (in bytes). | [optional][default to 10000000] |
|
13
|
+
| **created_at** | **String** | Date and time that the settings object was created. | [optional] |
|
14
|
+
| **critical_anomaly_score** | **Integer** | Score value to add for critical anomalies. | [optional][default to 6] |
|
15
|
+
| **crs_validate_utf8_encoding** | **Boolean** | CRS validate UTF8 encoding. | [optional] |
|
16
|
+
| **error_anomaly_score** | **Integer** | Score value to add for error anomalies. | [optional][default to 5] |
|
17
|
+
| **high_risk_country_codes** | **String** | A space-separated list of country codes in ISO 3166-1 (two-letter) format. | [optional] |
|
18
|
+
| **http_violation_score_threshold** | **Integer** | HTTP violation threshold. | [optional] |
|
19
|
+
| **inbound_anomaly_score_threshold** | **Integer** | Inbound anomaly threshold. | [optional] |
|
20
|
+
| **lfi_score_threshold** | **Integer** | Local file inclusion attack threshold. | [optional] |
|
21
|
+
| **max_file_size** | **Integer** | The maximum allowed file size (in bytes). | [optional][default to 10000000] |
|
22
|
+
| **max_num_args** | **Integer** | The maximum number of arguments allowed. | [optional][default to 255] |
|
23
|
+
| **notice_anomaly_score** | **Integer** | Score value to add for notice anomalies. | [optional][default to 4] |
|
24
|
+
| **paranoia_level** | **Integer** | The configured paranoia level. | [optional][default to 1] |
|
25
|
+
| **php_injection_score_threshold** | **Integer** | PHP injection threshold. | [optional] |
|
26
|
+
| **rce_score_threshold** | **Integer** | Remote code execution threshold. | [optional] |
|
27
|
+
| **restricted_extensions** | **String** | A space-separated list of disallowed file extensions. | [optional][default to '.asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx'] |
|
28
|
+
| **restricted_headers** | **String** | A space-separated list of disallowed header names. | [optional][default to '/proxy/ /lock-token/ /content-range/ /translate/ /if/'] |
|
29
|
+
| **rfi_score_threshold** | **Integer** | Remote file inclusion attack threshold. | [optional] |
|
30
|
+
| **session_fixation_score_threshold** | **Integer** | Session fixation attack threshold. | [optional] |
|
31
|
+
| **sql_injection_score_threshold** | **Integer** | SQL injection attack threshold. | [optional] |
|
32
|
+
| **total_arg_length** | **Integer** | The maximum size of argument names and values. | [optional][default to 6400] |
|
33
|
+
| **updated_at** | **String** | Date and time that the settings object was last updated. | [optional] |
|
34
|
+
| **warning_anomaly_score** | **Integer** | Score value to add for warning anomalies. | [optional] |
|
35
|
+
| **xss_score_threshold** | **Integer** | XSS attack threshold. | [optional] |
|
36
|
+
|
37
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
38
|
+
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# Fastly::LegacyWafOwaspApi
|
2
|
+
|
3
|
+
|
4
|
+
```ruby
|
5
|
+
require 'fastly'
|
6
|
+
api_instance = Fastly::LegacyWafOwaspApi.new
|
7
|
+
```
|
8
|
+
|
9
|
+
## Methods
|
10
|
+
|
11
|
+
| Method | HTTP request | Description |
|
12
|
+
| ------ | ------------ | ----------- |
|
13
|
+
| [**create_owasp_settings**](LegacyWafOwaspApi.md#create_owasp_settings) | **POST** /service/{service_id}/wafs/{firewall_id}/owasp | Create an OWASP settings object |
|
14
|
+
| [**get_owasp_settings**](LegacyWafOwaspApi.md#get_owasp_settings) | **GET** /service/{service_id}/wafs/{firewall_id}/owasp | Get the OWASP settings object |
|
15
|
+
| [**update_owasp_settings**](LegacyWafOwaspApi.md#update_owasp_settings) | **PATCH** /service/{service_id}/wafs/{firewall_id}/owasp | Update the OWASP settings object |
|
16
|
+
|
17
|
+
|
18
|
+
## `create_owasp_settings()`
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
create_owasp_settings(opts): Object # Create an OWASP settings object
|
22
|
+
```
|
23
|
+
|
24
|
+
Create an OWASP settings object for a particular service and firewall.
|
25
|
+
|
26
|
+
### Examples
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
api_instance = Fastly::LegacyWafOwaspApi.new
|
30
|
+
opts = {
|
31
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
32
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
33
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
# Create an OWASP settings object
|
38
|
+
result = api_instance.create_owasp_settings(opts)
|
39
|
+
p result
|
40
|
+
rescue Fastly::ApiError => e
|
41
|
+
puts "Error when calling LegacyWafOwaspApi->create_owasp_settings: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Options
|
46
|
+
|
47
|
+
| Name | Type | Description | Notes |
|
48
|
+
| ---- | ---- | ----------- | ----- |
|
49
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
50
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
51
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
**Object**
|
56
|
+
|
57
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
58
|
+
[[Back to README]](../../README.md)
|
59
|
+
## `get_owasp_settings()`
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
get_owasp_settings(opts): Object # Get the OWASP settings object
|
63
|
+
```
|
64
|
+
|
65
|
+
Get the OWASP settings object for a particular service and firewall.
|
66
|
+
|
67
|
+
### Examples
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
api_instance = Fastly::LegacyWafOwaspApi.new
|
71
|
+
opts = {
|
72
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
73
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
74
|
+
}
|
75
|
+
|
76
|
+
begin
|
77
|
+
# Get the OWASP settings object
|
78
|
+
result = api_instance.get_owasp_settings(opts)
|
79
|
+
p result
|
80
|
+
rescue Fastly::ApiError => e
|
81
|
+
puts "Error when calling LegacyWafOwaspApi->get_owasp_settings: #{e}"
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
### Options
|
86
|
+
|
87
|
+
| Name | Type | Description | Notes |
|
88
|
+
| ---- | ---- | ----------- | ----- |
|
89
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
90
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
91
|
+
|
92
|
+
### Return type
|
93
|
+
|
94
|
+
**Object**
|
95
|
+
|
96
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
97
|
+
[[Back to README]](../../README.md)
|
98
|
+
## `update_owasp_settings()`
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
update_owasp_settings(opts): Object # Update the OWASP settings object
|
102
|
+
```
|
103
|
+
|
104
|
+
Update the OWASP settings object for a particular service and firewall.
|
105
|
+
|
106
|
+
### Examples
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
api_instance = Fastly::LegacyWafOwaspApi.new
|
110
|
+
opts = {
|
111
|
+
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
112
|
+
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
113
|
+
request_body: { key: 3.56}, # Hash<String, Object> |
|
114
|
+
}
|
115
|
+
|
116
|
+
begin
|
117
|
+
# Update the OWASP settings object
|
118
|
+
result = api_instance.update_owasp_settings(opts)
|
119
|
+
p result
|
120
|
+
rescue Fastly::ApiError => e
|
121
|
+
puts "Error when calling LegacyWafOwaspApi->update_owasp_settings: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Options
|
126
|
+
|
127
|
+
| Name | Type | Description | Notes |
|
128
|
+
| ---- | ---- | ----------- | ----- |
|
129
|
+
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
130
|
+
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
131
|
+
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
132
|
+
|
133
|
+
### Return type
|
134
|
+
|
135
|
+
**Object**
|
136
|
+
|
137
|
+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
138
|
+
[[Back to README]](../../README.md)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Fastly::LegacyWafRule
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | Message metadata for the rule. | [optional] |
|
8
|
+
| **rule_id** | **String** | Corresponding ModSecurity rule ID. | [optional] |
|
9
|
+
| **severity** | **Integer** | Severity metadata for the rule. | [optional] |
|
10
|
+
| **source** | **String** | The ModSecurity rule logic. | [optional] |
|
11
|
+
| **vcl** | **String** | The VCL representation of the rule logic. | [optional] |
|
12
|
+
|
13
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
14
|
+
|