# ServiceAuthorizationsApi
All URIs are relative to *https://api.fastly.com*
[**create_service_authorization**](ServiceAuthorizationsApi.md#create_service_authorization) | **POST** /service-authorizations | Create service authorization
[**delete_service_authorization**](ServiceAuthorizationsApi.md#delete_service_authorization) | **DELETE** /service-authorizations/{service_authorization_id} | Delete service authorization
[**list_service_authorization**](ServiceAuthorizationsApi.md#list_service_authorization) | **GET** /service-authorizations | List service authorizations
[**show_service_authorization**](ServiceAuthorizationsApi.md#show_service_authorization) | **GET** /service-authorizations/{service_authorization_id} | Show service authorization
[**update_service_authorization**](ServiceAuthorizationsApi.md#update_service_authorization) | **PATCH** /service-authorizations/{service_authorization_id} | Update service authorization
## create_service_authorization
Create service authorization.
```rust
let cfg = &Configuration::default();
let params = CreateServiceAuthorizationParams {
// parameters
};
create_service_authorization(cfg, params)
```
### Parameters
**service_authorization** | Option\<[**ServiceAuthorization**](ServiceAuthorization.md)> | | |
### Return type
[**crate::models::ServiceAuthorizationResponse**](ServiceAuthorizationResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: application/vnd.api+json
- **Accept**: application/vnd.api+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
## delete_service_authorization
Delete service authorization.
```rust
let cfg = &Configuration::default();
let params = DeleteServiceAuthorizationParams {
// parameters
};
delete_service_authorization(cfg, params)
```
### Parameters
**service_authorization_id** | **String** | Alphanumeric string identifying a service authorization. | [required] |
### Return type
(empty response body)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
## list_service_authorization
List service authorizations.
```rust
let cfg = &Configuration::default();
let params = ListServiceAuthorizationParams {
// parameters
};
list_service_authorization(cfg, params)
```
### Parameters
**page_number** | Option\<**i32**> | Current page. | |
**page_size** | Option\<**i32**> | Number of records per page. | |[default to 20]
### Return type
[**crate::models::ServiceAuthorizationsResponse**](ServiceAuthorizationsResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/vnd.api+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
## show_service_authorization
Show service authorization.
```rust
let cfg = &Configuration::default();
let params = ShowServiceAuthorizationParams {
// parameters
};
show_service_authorization(cfg, params)
```
### Parameters
**service_authorization_id** | **String** | Alphanumeric string identifying a service authorization. | [required] |
### Return type
[**crate::models::ServiceAuthorizationResponse**](ServiceAuthorizationResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/vnd.api+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
## update_service_authorization
Update service authorization.
```rust
let cfg = &Configuration::default();
let params = UpdateServiceAuthorizationParams {
// parameters
};
update_service_authorization(cfg, params)
```
### Parameters
**service_authorization_id** | **String** | Alphanumeric string identifying a service authorization. | [required] |
**service_authorization** | Option\<[**ServiceAuthorization**](ServiceAuthorization.md)> | | |
### Return type
[**crate::models::ServiceAuthorizationResponse**](ServiceAuthorizationResponse.md)
### Authorization
[token](../README.md#token)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/vnd.api+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)