require 'fastly'
api_instance = Fastly::ServiceAuthorizationsApi.new
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(opts): <ServiceAuthorizationResponse> # Create service authorization
Create service authorization.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
service_authorization: Fastly::ServiceAuthorization.new, # ServiceAuthorization |
}
begin
# Create service authorization
result = api_instance.create_service_authorization(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->create_service_authorization: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_authorization | ServiceAuthorization | [optional] |
[Back to top] [Back to API list] [Back to README]
delete_service_authorization(opts) # Delete service authorization
Delete service authorization.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
service_authorization_id: 'service_authorization_id_example', # String | Alphanumeric string identifying a service authorization.
}
begin
# Delete service authorization
api_instance.delete_service_authorization(opts)
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->delete_service_authorization: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_authorization_id | String | Alphanumeric string identifying a service authorization. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
delete_service_authorization2(opts): <InlineResponse2007> # Delete service authorizations
Delete service authorizations.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
request_body: { key: 3.56}, # Hash<String, Object> |
}
begin
# Delete service authorizations
result = api_instance.delete_service_authorization2(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->delete_service_authorization2: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
request_body | Hash<String, Object> | [optional] |
[Back to top] [Back to API list] [Back to README]
list_service_authorization(opts): <ServiceAuthorizationsResponse> # List service authorizations
List service authorizations.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
page_number: 1, # Integer | Current page.
page_size: 20, # Integer | Number of records per page.
}
begin
# List service authorizations
result = api_instance.list_service_authorization(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->list_service_authorization: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
page_number | Integer | Current page. | [optional] |
page_size | Integer | Number of records per page. | [optional][default to 20] |
[Back to top] [Back to API list] [Back to README]
show_service_authorization(opts): <ServiceAuthorizationResponse> # Show service authorization
Show service authorization.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
service_authorization_id: 'service_authorization_id_example', # String | Alphanumeric string identifying a service authorization.
}
begin
# Show service authorization
result = api_instance.show_service_authorization(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->show_service_authorization: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_authorization_id | String | Alphanumeric string identifying a service authorization. |
[Back to top] [Back to API list] [Back to README]
update_service_authorization(opts): <ServiceAuthorizationResponse> # Update service authorization
Update service authorization.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
service_authorization_id: 'service_authorization_id_example', # String | Alphanumeric string identifying a service authorization.
service_authorization: Fastly::ServiceAuthorization.new, # ServiceAuthorization |
}
begin
# Update service authorization
result = api_instance.update_service_authorization(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->update_service_authorization: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
service_authorization_id | String | Alphanumeric string identifying a service authorization. | |
service_authorization | ServiceAuthorization | [optional] |
[Back to top] [Back to API list] [Back to README]
update_service_authorization2(opts): <ServiceAuthorizationsResponse> # Update service authorizations
Update service authorizations.
api_instance = Fastly::ServiceAuthorizationsApi.new
opts = {
request_body: { key: 3.56}, # Hash<String, Object> |
}
begin
# Update service authorizations
result = api_instance.update_service_authorization2(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ServiceAuthorizationsApi->update_service_authorization2: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
request_body | Hash<String, Object> | [optional] |