require 'fastly'
api_instance = Fastly::ApisecurityOperationsApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| api_security_bulk_add_tags_to_operations | POST /api-security/v1/services/{service_id}/operations-bulk-tags | Bulk add tags to operations |
| api_security_bulk_create_operations | POST /api-security/v1/services/{service_id}/operations-bulk | Bulk create operations |
| api_security_bulk_delete_operations | DELETE /api-security/v1/services/{service_id}/operations-bulk | Bulk delete operations |
| api_security_create_operation | POST /api-security/v1/services/{service_id}/operations | Create operation |
| api_security_create_operation_tag | POST /api-security/v1/services/{service_id}/tags | Create operation tag |
| api_security_delete_operation | DELETE /api-security/v1/services/{service_id}/operations/{operation_id} | Delete operation |
| api_security_delete_operation_tag | DELETE /api-security/v1/services/{service_id}/tags/{tag_id} | Delete operation tag |
| api_security_get_operation | GET /api-security/v1/services/{service_id}/operations/{operation_id} | Retrieve operation |
| api_security_get_operation_tag | GET /api-security/v1/services/{service_id}/tags/{tag_id} | Retrieve operation tag |
| api_security_list_discovered_operations | GET /api-security/v1/services/{service_id}/discovered-operations | List discovered operations |
| api_security_list_operation_tags | GET /api-security/v1/services/{service_id}/tags | List operation tags |
| api_security_list_operations | GET /api-security/v1/services/{service_id}/operations | List operations |
| api_security_update_operation | PATCH /api-security/v1/services/{service_id}/operations/{operation_id} | Update operation |
| api_security_update_operation_tag | PATCH /api-security/v1/services/{service_id}/tags/{tag_id} | Update operation tag |
api_security_bulk_add_tags_to_operations(opts): <InlineResponse2071> # Bulk add tags to operationsAdd tags to multiple operations in a single request.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_bulk_add_tags: Fastly::OperationBulkAddTags.new({operation_ids: ['op_abc123def456'], tag_ids: ['tag_abc123def456']}), # OperationBulkAddTags |
}
begin
# Bulk add tags to operations
result = api_instance.api_security_bulk_add_tags_to_operations(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_bulk_add_tags_to_operations: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_bulk_add_tags | OperationBulkAddTags | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_bulk_create_operations(opts): <InlineResponse207> # Bulk create operationsCreate multiple operations associated with a specific service in a single request.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_bulk_create: Fastly::OperationBulkCreate.new({operations: [Fastly::OperationBulkCreateOperations.new({method: 'GET', domain: 'www.example.com', path: '/api/v1/users/{var1}'})]}), # OperationBulkCreate |
}
begin
# Bulk create operations
result = api_instance.api_security_bulk_create_operations(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_bulk_create_operations: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_bulk_create | OperationBulkCreate | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_bulk_delete_operations(opts): <InlineResponse2071> # Bulk delete operationsDelete multiple operations in a single request.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_bulk_delete: Fastly::OperationBulkDelete.new({operation_ids: ['op_abc123def456']}), # OperationBulkDelete |
}
begin
# Bulk delete operations
result = api_instance.api_security_bulk_delete_operations(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_bulk_delete_operations: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_bulk_delete | OperationBulkDelete | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_create_operation(opts): <OperationGet> # Create operationCreate a new operation associated with a specific service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_create: Fastly::OperationCreate.new({method: 'GET', domain: 'www.example.com', path: '/api/v1/users/{var1}'}), # OperationCreate |
}
begin
# Create operation
result = api_instance.api_security_create_operation(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_create_operation: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_create | OperationCreate | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_create_operation_tag(opts): <TagGet> # Create operation tagCreate a new operation tag associated with a specific service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
tag_create: Fastly::TagCreate.new, # TagCreate |
}
begin
# Create operation tag
result = api_instance.api_security_create_operation_tag(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_create_operation_tag: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| tag_create | TagCreate | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_delete_operation(opts) # Delete operationDelete an existing operation associated with a specific service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_id: 'op_abc123def456', # String | The unique identifier of the operation.
}
begin
# Delete operation
api_instance.api_security_delete_operation(opts)
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_delete_operation: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_id | String | The unique identifier of the operation. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
api_security_delete_operation_tag(opts) # Delete operation tagDelete an existing operation tag.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
tag_id: 'tag_abc123def456', # String | The unique identifier of the operation tag.
}
begin
# Delete operation tag
api_instance.api_security_delete_operation_tag(opts)
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_delete_operation_tag: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| tag_id | String | The unique identifier of the operation tag. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
api_security_get_operation(opts): <OperationGet> # Retrieve operationGet a specific operation associated with a service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_id: 'op_abc123def456', # String | The unique identifier of the operation.
}
begin
# Retrieve operation
result = api_instance.api_security_get_operation(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_get_operation: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_id | String | The unique identifier of the operation. |
[Back to top] [Back to API list] [Back to README]
api_security_get_operation_tag(opts): <TagGet> # Retrieve operation tagGet a specific operation tag by its unique identifier.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
tag_id: 'tag_abc123def456', # String | The unique identifier of the operation tag.
}
begin
# Retrieve operation tag
result = api_instance.api_security_get_operation_tag(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_get_operation_tag: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| tag_id | String | The unique identifier of the operation tag. |
[Back to top] [Back to API list] [Back to README]
api_security_list_discovered_operations(opts): <InlineResponse2001> # List discovered operationsList all discovered operations associated with a specific service. Optionally filter operations by status.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
method: ['GET'], # Array<String> | Filter operations by HTTP method.
domain: ['inner_example'], # Array<String> | Filter operations by fully-qualified domain name (exact match).
path: '/api/v1/users', # String | Filter operations by path (exact match).
limit: 100, # Integer | The maximum number of operations to return per page.
page: 1, # Integer | The page number to return.
}
begin
# List discovered operations
result = api_instance.api_security_list_discovered_operations(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_list_discovered_operations: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| method | Array<String> | Filter operations by HTTP method. | [optional] |
| domain | Array<String> | Filter operations by fully-qualified domain name (exact match). | [optional] |
| path | String | Filter operations by path (exact match). | [optional] |
| limit | Integer | The maximum number of operations to return per page. | [optional][default to 100] |
| page | Integer | The page number to return. | [optional][default to 0] |
[Back to top] [Back to API list] [Back to README]
api_security_list_operation_tags(opts): <InlineResponse2003> # List operation tagsList all operation tags associated with a specific service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
limit: 100, # Integer | The maximum number of operations to return per page.
page: 1, # Integer | The page number to return.
}
begin
# List operation tags
result = api_instance.api_security_list_operation_tags(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_list_operation_tags: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| limit | Integer | The maximum number of operations to return per page. | [optional][default to 100] |
| page | Integer | The page number to return. | [optional][default to 0] |
[Back to top] [Back to API list] [Back to README]
api_security_list_operations(opts): <InlineResponse2002> # List operationsList all operations associated with a specific service. Optionally filter operations by tag ID.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
tag_id: 'tag_abc123def456', # String | Filter operations by operation tag ID. Only operations associated with this operation tag will be returned.
status: 'SAVED', # String | Filter operations by status. Defaults to SAVED if omitted.
method: ['GET'], # Array<String> | Filter operations by HTTP method.
domain: ['inner_example'], # Array<String> | Filter operations by fully-qualified domain name (exact match).
path: '/api/v1/users', # String | Filter operations by path (exact match).
limit: 100, # Integer | The maximum number of operations to return per page.
page: 1, # Integer | The page number to return.
}
begin
# List operations
result = api_instance.api_security_list_operations(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_list_operations: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| tag_id | String | Filter operations by operation tag ID. Only operations associated with this operation tag will be returned. | [optional] |
| status | String | Filter operations by status. Defaults to SAVED if omitted. | [optional][default to 'SAVED'] |
| method | Array<String> | Filter operations by HTTP method. | [optional] |
| domain | Array<String> | Filter operations by fully-qualified domain name (exact match). | [optional] |
| path | String | Filter operations by path (exact match). | [optional] |
| limit | Integer | The maximum number of operations to return per page. | [optional][default to 100] |
| page | Integer | The page number to return. | [optional][default to 0] |
[Back to top] [Back to API list] [Back to README]
api_security_update_operation(opts): <OperationGet> # Update operationPartially update an existing operation associated with a specific service.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
operation_id: 'op_abc123def456', # String | The unique identifier of the operation.
operation_update: Fastly::OperationUpdate.new, # OperationUpdate |
}
begin
# Update operation
result = api_instance.api_security_update_operation(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_update_operation: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| operation_id | String | The unique identifier of the operation. | |
| operation_update | OperationUpdate | [optional] |
[Back to top] [Back to API list] [Back to README]
api_security_update_operation_tag(opts): <TagGet> # Update operation tagPartially update an existing operation tag.
api_instance = Fastly::ApisecurityOperationsApi.new
opts = {
service_id: '3NeCFuZNP1v0iyJ2vmYQI6', # String | The unique identifier of the service.
tag_id: 'tag_abc123def456', # String | The unique identifier of the operation tag.
body: 3.56, # TagBase |
}
begin
# Update operation tag
result = api_instance.api_security_update_operation_tag(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ApisecurityOperationsApi->api_security_update_operation_tag: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | The unique identifier of the service. | |
| tag_id | String | The unique identifier of the operation tag. | |
| body | TagBase | [optional] |