Skip to content

Latest commit

 

History

History
465 lines (348 loc) · 14.8 KB

File metadata and controls

465 lines (348 loc) · 14.8 KB

Fastly::ApisecurityOperationsApi

require 'fastly'
api_instance = Fastly::ApisecurityOperationsApi.new

Methods

Note

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()

api_security_create_operation(opts): <OperationGet> # Create operation

Create a new operation associated with a specific service.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
operation_create OperationCreate [optional]

Return type

OperationGet

[Back to top] [Back to API list] [Back to README]

api_security_create_operation_tag()

api_security_create_operation_tag(opts): <TagGet> # Create operation tag

Create a new operation tag associated with a specific service.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
tag_create TagCreate [optional]

Return type

TagGet

[Back to top] [Back to API list] [Back to README]

api_security_delete_operation()

api_security_delete_operation(opts) # Delete operation

Delete an existing operation associated with a specific service.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
operation_id String The unique identifier of the operation.

Return type

nil (empty response body)

[Back to top] [Back to API list] [Back to README]

api_security_delete_operation_tag()

api_security_delete_operation_tag(opts) # Delete operation tag

Delete an existing operation tag.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
tag_id String The unique identifier of the operation tag.

Return type

nil (empty response body)

[Back to top] [Back to API list] [Back to README]

api_security_get_operation()

api_security_get_operation(opts): <OperationGet> # Retrieve operation

Get a specific operation associated with a service.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
operation_id String The unique identifier of the operation.

Return type

OperationGet

[Back to top] [Back to API list] [Back to README]

api_security_get_operation_tag()

api_security_get_operation_tag(opts): <TagGet> # Retrieve operation tag

Get a specific operation tag by its unique identifier.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.
tag_id String The unique identifier of the operation tag.

Return type

TagGet

[Back to top] [Back to API list] [Back to README]

api_security_list_discovered_operations()

api_security_list_discovered_operations(opts): <InlineResponse2001> # List discovered operations

List all discovered operations associated with a specific service. Optionally filter operations by status.

Examples

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

Options

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]

Return type

InlineResponse2001

[Back to top] [Back to API list] [Back to README]

api_security_list_operation_tags()

api_security_list_operation_tags(opts): <InlineResponse2003> # List operation tags

List all operation tags associated with a specific service.

Examples

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

Options

Name Type Description Notes
service_id String The unique identifier of the service.

Return type

InlineResponse2003

[Back to top] [Back to API list] [Back to README]

api_security_list_operations()

api_security_list_operations(opts): <InlineResponse2002> # List operations

List all operations associated with a specific service. Optionally filter operations by tag ID.

Examples

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

Options

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]

Return type

InlineResponse2002

[Back to top] [Back to API list] [Back to README]

api_security_update_operation()

api_security_update_operation(opts): <OperationGet> # Update operation

Partially update an existing operation associated with a specific service.

Examples

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

Options

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]

Return type

OperationGet

[Back to top] [Back to API list] [Back to README]

api_security_update_operation_tag()

api_security_update_operation_tag(opts): <TagGet> # Update operation tag

Partially update an existing operation tag.

Examples

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

Options

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]

Return type

TagGet

[Back to top] [Back to API list] [Back to README]