use WebService::Fastly::Object::StarApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_service_star | POST /stars | Create a star |
delete_service_star | DELETE /stars/{star_id} | Delete a star |
get_service_star | GET /stars/{star_id} | Get a star |
list_service_stars | GET /stars | List stars |
StarResponse create_service_star(star => $star)
Create a star
Create star.
use Data::Dumper;
use WebService::Fastly::StarApi;
my $api_instance = WebService::Fastly::StarApi->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 $star = WebService::Fastly::Object::Star->new(); # Star |
eval {
my $result = $api_instance->create_service_star(star => $star);
print Dumper($result);
};
if ($@) {
warn "Exception when calling StarApi->create_service_star: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
star | Star | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_service_star(star_id => $star_id)
Delete a star
Delete star.
use Data::Dumper;
use WebService::Fastly::StarApi;
my $api_instance = WebService::Fastly::StarApi->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 $star_id = "star_id_example"; # string | Alphanumeric string identifying a star.
eval {
$api_instance->delete_service_star(star_id => $star_id);
};
if ($@) {
warn "Exception when calling StarApi->delete_service_star: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
star_id | string | Alphanumeric string identifying a star. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StarResponse get_service_star(star_id => $star_id)
Get a star
Show star.
use Data::Dumper;
use WebService::Fastly::StarApi;
my $api_instance = WebService::Fastly::StarApi->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 $star_id = "star_id_example"; # string | Alphanumeric string identifying a star.
eval {
my $result = $api_instance->get_service_star(star_id => $star_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling StarApi->get_service_star: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
star_id | string | Alphanumeric string identifying a star. |
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Pagination list_service_stars()
List stars
List stars.
use Data::Dumper;
use WebService::Fastly::StarApi;
my $api_instance = WebService::Fastly::StarApi->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'},
);
eval {
my $result = $api_instance->list_service_stars();
print Dumper($result);
};
if ($@) {
warn "Exception when calling StarApi->list_service_stars: $@\n";
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]