require 'fastly'
api_instance = Fastly::AclsInComputeApi.new
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
compute_acl_create_acls | POST /resources/acls | Create a new ACL |
compute_acl_delete_s_acl_id | DELETE /resources/acls/{acl_id} | Delete an ACL |
compute_acl_list_acl_entries | GET /resources/acls/{acl_id}/entries | List an ACL |
compute_acl_list_acls | GET /resources/acls | List ACLs |
compute_acl_list_acls_s_acl_id | GET /resources/acls/{acl_id} | Describe an ACL |
compute_acl_lookup_acls | GET /resources/acls/{acl_id}/entry/{acl_ip} | Lookup an ACL |
compute_acl_update_acls | PATCH /resources/acls/{acl_id}/entries | Update an ACL |
compute_acl_create_acls(opts): <ComputeAclCreateAclsResponse> # Create a new ACL
Create a new ACL.
api_instance = Fastly::AclsInComputeApi.new
opts = {
compute_acl_create_acls_request: Fastly::ComputeAclCreateAclsRequest.new, # ComputeAclCreateAclsRequest |
}
begin
# Create a new ACL
result = api_instance.compute_acl_create_acls(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_create_acls: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
compute_acl_create_acls_request | ComputeAclCreateAclsRequest | [optional] |
[Back to top] [Back to API list] [Back to README]
compute_acl_delete_s_acl_id(opts) # Delete an ACL
Delete an ACL.
api_instance = Fastly::AclsInComputeApi.new
opts = {
acl_id: 'acl_id_example', # String |
}
begin
# Delete an ACL
api_instance.compute_acl_delete_s_acl_id(opts)
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_delete_s_acl_id: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
acl_id | String |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
compute_acl_list_acl_entries(opts): <ComputeAclListEntries> # List an ACL
List an ACL.
api_instance = Fastly::AclsInComputeApi.new
opts = {
acl_id: 'acl_id_example', # String |
cursor: 'cursor_example', # String |
limit: 56, # Integer |
}
begin
# List an ACL
result = api_instance.compute_acl_list_acl_entries(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_list_acl_entries: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
acl_id | String | ||
cursor | String | [optional] | |
limit | Integer | [optional][default to 100] |
[Back to top] [Back to API list] [Back to README]
compute_acl_list_acls: <Array<ComputeAclCreateAclsResponse>> # List ACLs
List all ACLs.
api_instance = Fastly::AclsInComputeApi.new
begin
# List ACLs
result = api_instance.compute_acl_list_acls
p result
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_list_acls: #{e}"
end
This endpoint does not need any parameter.
Array<ComputeAclCreateAclsResponse>
[Back to top] [Back to API list] [Back to README]
compute_acl_list_acls_s_acl_id(opts): <ComputeAclCreateAclsResponse> # Describe an ACL
Describe an ACL.
api_instance = Fastly::AclsInComputeApi.new
opts = {
acl_id: 'acl_id_example', # String |
}
begin
# Describe an ACL
result = api_instance.compute_acl_list_acls_s_acl_id(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_list_acls_s_acl_id: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
acl_id | String |
[Back to top] [Back to API list] [Back to README]
compute_acl_lookup_acls(opts): <ComputeAclLookup> # Lookup an ACL
Find a matching ACL entry for an IP address.
api_instance = Fastly::AclsInComputeApi.new
opts = {
acl_id: 'acl_id_example', # String |
acl_ip: 'acl_ip_example', # String |
}
begin
# Lookup an ACL
result = api_instance.compute_acl_lookup_acls(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_lookup_acls: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
acl_id | String | ||
acl_ip | String |
[Back to top] [Back to API list] [Back to README]
compute_acl_update_acls(opts) # Update an ACL
Update an ACL.
api_instance = Fastly::AclsInComputeApi.new
opts = {
acl_id: 'acl_id_example', # String |
compute_acl_update_entry: [Fastly::ComputeAclUpdateEntry.new], # Array<ComputeAclUpdateEntry> |
}
begin
# Update an ACL
api_instance.compute_acl_update_acls(opts)
rescue Fastly::ApiError => e
puts "Error when calling AclsInComputeApi->compute_acl_update_acls: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
acl_id | String | ||
compute_acl_update_entry | Array<ComputeAclUpdateEntry> | [optional] |
nil (empty response body)