$apiInstance = new Fastly\Api\StarApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createServiceStar() | POST /stars | Create a star |
deleteServiceStar() | DELETE /stars/{star_id} | Delete a star |
getServiceStar() | GET /stars/{star_id} | Get a star |
listServiceStars() | GET /stars | List stars |
createServiceStar($options): \Fastly\Model\StarResponse // Create a star
Create star.
$options['star'] = {"data":{"type":"star","relationships":{"user":{"data":{"type":"user","id":"6c7kAlo4vACNchGOdQxP37"}},"service":{"data":{"type":"service","id":"SU1Z0isxPaozGVKXdv0eY"}}}}}; // \Fastly\Model\Star
try {
$result = $apiInstance->createServiceStar($options);
} catch (Exception $e) {
echo 'Exception when calling StarApi->createServiceStar: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
star | \Fastly\Model\Star | [optional] |
[Back to top] [Back to API list] [Back to README]
deleteServiceStar($options) // Delete a star
Delete star.
$options['star_id'] = 'star_id_example'; // string | Alphanumeric string identifying a star.
try {
$apiInstance->deleteServiceStar($options);
} catch (Exception $e) {
echo 'Exception when calling StarApi->deleteServiceStar: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
star_id | string | Alphanumeric string identifying a star. |
void (empty response body)
[Back to top] [Back to API list] [Back to README]
getServiceStar($options): \Fastly\Model\StarResponse // Get a star
Show star.
$options['star_id'] = 'star_id_example'; // string | Alphanumeric string identifying a star.
try {
$result = $apiInstance->getServiceStar($options);
} catch (Exception $e) {
echo 'Exception when calling StarApi->getServiceStar: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
star_id | string | Alphanumeric string identifying a star. |
[Back to top] [Back to API list] [Back to README]
listServiceStars($options): Pagination // List stars
List stars.
try {
$result = $apiInstance->listServiceStars($options);
} catch (Exception $e) {
echo 'Exception when calling StarApi->listServiceStars: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
This endpoint does not need any parameters.