Skip to content

Latest commit

 

History

History
263 lines (161 loc) · 7.25 KB

ServiceAuthorizationsApi.md

File metadata and controls

263 lines (161 loc) · 7.25 KB

ServiceAuthorizationsApi

Note

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

Method HTTP request Description
create_service_authorization POST /service-authorizations Create service authorization
delete_service_authorization DELETE /service-authorizations/{service_authorization_id} Delete service authorization
delete_service_authorization2 DELETE /service-authorizations Delete service authorizations
list_service_authorization GET /service-authorizations List service authorizations
show_service_authorization GET /service-authorizations/{service_authorization_id} Show service authorization
update_service_authorization PATCH /service-authorizations/{service_authorization_id} Update service authorization
update_service_authorization2 PATCH /service-authorizations Update service authorizations

create_service_authorization

Create service authorization.

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

Parameters

Name Type Description Required Notes
service_authorization Option<ServiceAuthorization>

Return type

crate::models::ServiceAuthorizationResponse

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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

delete_service_authorization

Delete service authorization.

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

Parameters

Name Type Description Required Notes
service_authorization_id String Alphanumeric string identifying a service authorization. [required]

Return type

(empty response body)

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

delete_service_authorization2

Delete service authorizations.

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

Parameters

Name Type Description Required Notes
request_body Option<::std::collections::HashMap<String, serde_json::Value>>

Return type

crate::models::InlineResponse2007

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json; ext=bulk
  • Accept: application/vnd.api+json; ext=bulk

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

list_service_authorization

List service authorizations.

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

Parameters

Name Type Description Required Notes
page_number Option<i32> Current page.
page_size Option<i32> Number of records per page. [default to 20]

Return type

crate::models::ServiceAuthorizationsResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

show_service_authorization

Show service authorization.

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

Parameters

Name Type Description Required Notes
service_authorization_id String Alphanumeric string identifying a service authorization. [required]

Return type

crate::models::ServiceAuthorizationResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

update_service_authorization

Update service authorization.

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

Parameters

Name Type Description Required Notes
service_authorization_id String Alphanumeric string identifying a service authorization. [required]
service_authorization Option<ServiceAuthorization>

Return type

crate::models::ServiceAuthorizationResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.api+json

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

update_service_authorization2

Update service authorizations.

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

Parameters

Name Type Description Required Notes
request_body Option<::std::collections::HashMap<String, serde_json::Value>>

Return type

crate::models::ServiceAuthorizationsResponse

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json; ext=bulk
  • Accept: application/vnd.api+json; ext=bulk

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