require 'fastly'
api_instance = Fastly::ApisecurityOperationsApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| 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_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, # 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.
status: 'DISCOVERED', # String | Filter operations by status. Only operations with this status will be returned.
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. | |
| status | String | Filter operations by status. Only operations with this status will be returned. | [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.
}
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. |
[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.
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] |
| 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] |