Skip to content

Latest commit

 

History

History
241 lines (153 loc) · 6.96 KB

AclEntryApi.md

File metadata and controls

241 lines (153 loc) · 6.96 KB

AclEntryApi

Note

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

Method HTTP request Description
bulk_update_acl_entries PATCH /service/{service_id}/acl/{acl_id}/entries Update multiple ACL entries
create_acl_entry POST /service/{service_id}/acl/{acl_id}/entry Create an ACL entry
delete_acl_entry DELETE /service/{service_id}/acl/{acl_id}/entry/{acl_entry_id} Delete an ACL entry
get_acl_entry GET /service/{service_id}/acl/{acl_id}/entry/{acl_entry_id} Describe an ACL entry
list_acl_entries GET /service/{service_id}/acl/{acl_id}/entries List ACL entries
update_acl_entry PATCH /service/{service_id}/acl/{acl_id}/entry/{acl_entry_id} Update an ACL entry

bulk_update_acl_entries

Update multiple ACL entries on the same ACL. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 entries. Contact support to discuss raising this limit.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
bulk_update_acl_entries_request Option<BulkUpdateAclEntriesRequest>

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

create_acl_entry

Add an ACL entry to an ACL.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
acl_entry Option<AclEntry>

Return type

crate::models::AclEntryResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

delete_acl_entry

Delete an ACL entry from a specified ACL.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
acl_entry_id String Alphanumeric string identifying an ACL Entry. [required]

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

get_acl_entry

Retrieve a single ACL entry.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
acl_entry_id String Alphanumeric string identifying an ACL Entry. [required]

Return type

crate::models::AclEntryResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

list_acl_entries

List ACL entries for a specified ACL.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
page Option<i32> Current page.
per_page Option<i32> Number of records per page. [default to 20]
sort Option<String> Field on which to sort. [default to created]
direction Option<String> Direction in which to sort results. [default to ascend]

Return type

Vec<crate::models::AclEntryResponse>

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

update_acl_entry

Update an ACL entry for a specified ACL.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
acl_id String Alphanumeric string identifying a ACL. [required]
acl_entry_id String Alphanumeric string identifying an ACL Entry. [required]
acl_entry Option<AclEntry>

Return type

crate::models::AclEntryResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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