Skip to content

Latest commit

 

History

History
199 lines (125 loc) · 5.83 KB

ResponseObjectApi.md

File metadata and controls

199 lines (125 loc) · 5.83 KB

ResponseObjectApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
create_response_object POST /service/{service_id}/version/{version_id}/response_object Create a Response object
delete_response_object DELETE /service/{service_id}/version/{version_id}/response_object/{response_object_name} Delete a Response Object
get_response_object GET /service/{service_id}/version/{version_id}/response_object/{response_object_name} Get a Response object
list_response_objects GET /service/{service_id}/version/{version_id}/response_object List Response objects
update_response_object PUT /service/{service_id}/version/{version_id}/response_object/{response_object_name} Update a Response object

create_response_object

Creates a new Response Object.

let cfg = &Configuration::default();
let params = CreateResponseObjectParams {
    // parameters
};
create_response_object(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
create_response_object_request Option<CreateResponseObjectRequest>

Return type

crate::models::ResponseObjectResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

delete_response_object

Deletes the specified Response Object.

let cfg = &Configuration::default();
let params = DeleteResponseObjectParams {
    // parameters
};
delete_response_object(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
response_object_name String Name for the request settings. [required]

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

get_response_object

Gets the specified Response Object.

let cfg = &Configuration::default();
let params = GetResponseObjectParams {
    // parameters
};
get_response_object(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
response_object_name String Name for the request settings. [required]

Return type

crate::models::ResponseObjectResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

list_response_objects

Returns all Response Objects for the specified service and version.

let cfg = &Configuration::default();
let params = ListResponseObjectsParams {
    // parameters
};
list_response_objects(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]

Return type

Vec<crate::models::ResponseObjectResponse>

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

update_response_object

Updates the specified Response Object.

let cfg = &Configuration::default();
let params = UpdateResponseObjectParams {
    // parameters
};
update_response_object(cfg, params)

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
version_id i32 Integer identifying a service version. [required]
response_object_name String Name for the request settings. [required]
create_response_object_request Option<CreateResponseObjectRequest>

Return type

crate::models::ResponseObjectResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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