$apiInstance = new Fastly\Api\AclsInComputeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
computeAclCreateAcls() | POST /resources/acls | Create a new ACL |
computeAclDeleteSAclId() | DELETE /resources/acls/{acl_id} | Delete an ACL |
computeAclListAclEntries() | GET /resources/acls/{acl_id}/entries | List an ACL |
computeAclListAcls() | GET /resources/acls | List ACLs |
computeAclListAclsSAclId() | GET /resources/acls/{acl_id} | Describe an ACL |
computeAclLookupAcls() | GET /resources/acls/{acl_id}/entry/{acl_ip} | Lookup an ACL |
computeAclUpdateAcls() | PATCH /resources/acls/{acl_id}/entries | Update an ACL |
computeAclCreateAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse // Create a new ACL
Create a new ACL.
$options['compute_acl_create_acls_request'] = new \Fastly\Model\ComputeAclCreateAclsRequest(); // \Fastly\Model\ComputeAclCreateAclsRequest
try {
$result = $apiInstance->computeAclCreateAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclCreateAcls: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
compute_acl_create_acls_request | \Fastly\Model\ComputeAclCreateAclsRequest | [optional] |
\Fastly\Model\ComputeAclCreateAclsResponse
[Back to top] [Back to API list] [Back to README]
computeAclDeleteSAclId($options) // Delete an ACL
Delete an ACL.
$options['acl_id'] = 'acl_id_example'; // string
try {
$apiInstance->computeAclDeleteSAclId($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclDeleteSAclId: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
acl_id | string |
void (empty response body)
[Back to top] [Back to API list] [Back to README]
computeAclListAclEntries($options): \Fastly\Model\ComputeAclListEntries // List an ACL
List an ACL.
$options['acl_id'] = 'acl_id_example'; // string
$options['cursor'] = 'cursor_example'; // string
$options['limit'] = 100; // int
try {
$result = $apiInstance->computeAclListAclEntries($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAclEntries: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
acl_id | string | ||
cursor | string | [optional] | |
limit | int | [optional] [defaults to 100] |
\Fastly\Model\ComputeAclListEntries
[Back to top] [Back to API list] [Back to README]
computeAclListAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse[] // List ACLs
List all ACLs.
try {
$result = $apiInstance->computeAclListAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAcls: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
This endpoint does not need any parameters.
\Fastly\Model\ComputeAclCreateAclsResponse[]
[Back to top] [Back to API list] [Back to README]
computeAclListAclsSAclId($options): \Fastly\Model\ComputeAclCreateAclsResponse // Describe an ACL
Describe an ACL.
$options['acl_id'] = 'acl_id_example'; // string
try {
$result = $apiInstance->computeAclListAclsSAclId($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAclsSAclId: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
acl_id | string |
\Fastly\Model\ComputeAclCreateAclsResponse
[Back to top] [Back to API list] [Back to README]
computeAclLookupAcls($options): \Fastly\Model\ComputeAclLookup // Lookup an ACL
Find a matching ACL entry for an IP address.
$options['acl_id'] = 'acl_id_example'; // string
$options['acl_ip'] = 'acl_ip_example'; // string
try {
$result = $apiInstance->computeAclLookupAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclLookupAcls: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
acl_id | string | ||
acl_ip | string |
\Fastly\Model\ComputeAclLookup
[Back to top] [Back to API list] [Back to README]
computeAclUpdateAcls($options) // Update an ACL
Update an ACL.
$options['acl_id'] = 'acl_id_example'; // string
$options['compute_acl_update'] = new \Fastly\Model\ComputeAclUpdate(); // \Fastly\Model\ComputeAclUpdate
try {
$apiInstance->computeAclUpdateAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclUpdateAcls: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
acl_id | string | ||
compute_acl_update | \Fastly\Model\ComputeAclUpdate | [optional] |
void (empty response body)