use WebService::Fastly::Object::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 |
ResponseObjectResponse create_response_object(service_id => $service_id, version_id => $version_id, create_response_object_request => $create_response_object_request)
Create a Response object
Creates a new Response Object.
use Data::Dumper;
use WebService::Fastly::ResponseObjectApi;
my $api_instance = WebService::Fastly::ResponseObjectApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
my $create_response_object_request = WebService::Fastly::Object::CreateResponseObjectRequest->new(); # CreateResponseObjectRequest |
eval {
my $result = $api_instance->create_response_object(service_id => $service_id, version_id => $version_id, create_response_object_request => $create_response_object_request);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ResponseObjectApi->create_response_object: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
create_response_object_request | CreateResponseObjectRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 delete_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name)
Delete a Response Object
Deletes the specified Response Object.
use Data::Dumper;
use WebService::Fastly::ResponseObjectApi;
my $api_instance = WebService::Fastly::ResponseObjectApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
my $response_object_name = "response_object_name_example"; # string | Name for the request settings.
eval {
my $result = $api_instance->delete_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ResponseObjectApi->delete_response_object: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
response_object_name | string | Name for the request settings. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseObjectResponse get_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name)
Get a Response object
Gets the specified Response Object.
use Data::Dumper;
use WebService::Fastly::ResponseObjectApi;
my $api_instance = WebService::Fastly::ResponseObjectApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
my $response_object_name = "response_object_name_example"; # string | Name for the request settings.
eval {
my $result = $api_instance->get_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ResponseObjectApi->get_response_object: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
response_object_name | string | Name for the request settings. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ARRAY[ResponseObjectResponse] list_response_objects(service_id => $service_id, version_id => $version_id)
List Response objects
Returns all Response Objects for the specified service and version.
use Data::Dumper;
use WebService::Fastly::ResponseObjectApi;
my $api_instance = WebService::Fastly::ResponseObjectApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
eval {
my $result = $api_instance->list_response_objects(service_id => $service_id, version_id => $version_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ResponseObjectApi->list_response_objects: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseObjectResponse update_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name, create_response_object_request => $create_response_object_request)
Update a Response object
Updates the specified Response Object.
use Data::Dumper;
use WebService::Fastly::ResponseObjectApi;
my $api_instance = WebService::Fastly::ResponseObjectApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $version_id = 56; # int | Integer identifying a service version.
my $response_object_name = "response_object_name_example"; # string | Name for the request settings.
my $create_response_object_request = WebService::Fastly::Object::CreateResponseObjectRequest->new(); # CreateResponseObjectRequest |
eval {
my $result = $api_instance->update_response_object(service_id => $service_id, version_id => $version_id, response_object_name => $response_object_name, create_response_object_request => $create_response_object_request);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ResponseObjectApi->update_response_object: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
response_object_name | string | Name for the request settings. | |
create_response_object_request | CreateResponseObjectRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]