WebService::Fastly::ServiceAuthorizationsApi

Load the API package

use WebService::Fastly::Object::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

ServiceAuthorizationResponse create_service_authorization(service_authorization => $service_authorization)

Create service authorization

Create service authorization.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $service_authorization = WebService::Fastly::Object::ServiceAuthorization->new(); # ServiceAuthorization | 

eval {
    my $result = $api_instance->create_service_authorization(service_authorization => $service_authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->create_service_authorization: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- service_authorization | ServiceAuthorization| | [optional]

Return type

ServiceAuthorizationResponse

Authorization

token

HTTP request headers

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

delete_service_authorization

delete_service_authorization(service_authorization_id => $service_authorization_id)

Delete service authorization

Delete service authorization.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $service_authorization_id = "service_authorization_id_example"; # string | Alphanumeric string identifying a service authorization.

eval {
    $api_instance->delete_service_authorization(service_authorization_id => $service_authorization_id);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->delete_service_authorization: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- service_authorization_id | string| Alphanumeric string identifying a service authorization. |

Return type

void (empty response body)

Authorization

token

HTTP request headers

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

delete_service_authorization2

InlineResponse20014 delete_service_authorization2(request_body => $request_body)

Delete service authorizations

Delete service authorizations.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] | 

eval {
    my $result = $api_instance->delete_service_authorization2(request_body => $request_body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->delete_service_authorization2: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- request_body | HASH[string,object]| | [optional]

Return type

InlineResponse20014

Authorization

token

HTTP request headers

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

list_service_authorization

ServiceAuthorizationsResponse list_service_authorization(page[number] => $page[number], page[size] => $page[size])

List service authorizations

List service authorizations.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $page[number] = 1; # int | Current page.
my $page[size] = 20; # int | Number of records per page.

eval {
    my $result = $api_instance->list_service_authorization(page[number] => $page[number], page[size] => $page[size]);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->list_service_authorization: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- page[number] | int| Current page. | [optional] page[size] | int| Number of records per page. | [optional] [default to 20]

Return type

ServiceAuthorizationsResponse

Authorization

token

HTTP request headers

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

show_service_authorization

ServiceAuthorizationResponse show_service_authorization(service_authorization_id => $service_authorization_id)

Show service authorization

Show service authorization.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $service_authorization_id = "service_authorization_id_example"; # string | Alphanumeric string identifying a service authorization.

eval {
    my $result = $api_instance->show_service_authorization(service_authorization_id => $service_authorization_id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->show_service_authorization: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- service_authorization_id | string| Alphanumeric string identifying a service authorization. |

Return type

ServiceAuthorizationResponse

Authorization

token

HTTP request headers

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

update_service_authorization

ServiceAuthorizationResponse update_service_authorization(service_authorization_id => $service_authorization_id, service_authorization => $service_authorization)

Update service authorization

Update service authorization.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $service_authorization_id = "service_authorization_id_example"; # string | Alphanumeric string identifying a service authorization.
my $service_authorization = WebService::Fastly::Object::ServiceAuthorization->new(); # ServiceAuthorization | 

eval {
    my $result = $api_instance->update_service_authorization(service_authorization_id => $service_authorization_id, service_authorization => $service_authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->update_service_authorization: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- service_authorization_id | string| Alphanumeric string identifying a service authorization. | service_authorization | ServiceAuthorization| | [optional]

Return type

ServiceAuthorizationResponse

Authorization

token

HTTP request headers

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

update_service_authorization2

ServiceAuthorizationsResponse update_service_authorization2(request_body => $request_body)

Update service authorizations

Update service authorizations.

Example

use Data::Dumper;
use WebService::Fastly::ServiceAuthorizationsApi;
my $api_instance = WebService::Fastly::ServiceAuthorizationsApi->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 $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] | 

eval {
    my $result = $api_instance->update_service_authorization2(request_body => $request_body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceAuthorizationsApi->update_service_authorization2: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- request_body | HASH[string,object]| | [optional]

Return type

ServiceAuthorizationsResponse

Authorization

token

HTTP request headers

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