Skip to content

Latest commit

 

History

History
270 lines (187 loc) · 7.47 KB

AclsInComputeApi.md

File metadata and controls

270 lines (187 loc) · 7.47 KB

Fastly\Api\AclsInComputeApi

$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
);

Methods

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()

computeAclCreateAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse // Create a new ACL

Create a new ACL.

Example

    $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;
}

Options

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]

Return type

\Fastly\Model\ComputeAclCreateAclsResponse

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

computeAclDeleteSAclId()

computeAclDeleteSAclId($options) // Delete an ACL

Delete an ACL.

Example

    $options['acl_id'] = 'acl_id_example'; // string

try {
    $apiInstance->computeAclDeleteSAclId($options);
} catch (Exception $e) {
    echo 'Exception when calling AclsInComputeApi->computeAclDeleteSAclId: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
acl_id string

Return type

void (empty response body)

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

computeAclListAclEntries()

computeAclListAclEntries($options): \Fastly\Model\ComputeAclListEntries // List an ACL

List an ACL.

Example

    $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;
}

Options

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]

Return type

\Fastly\Model\ComputeAclListEntries

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

computeAclListAcls()

computeAclListAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse[] // List ACLs

List all ACLs.

Example

    
try {
    $result = $apiInstance->computeAclListAcls($options);
} catch (Exception $e) {
    echo 'Exception when calling AclsInComputeApi->computeAclListAcls: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

This endpoint does not need any parameters.

Return type

\Fastly\Model\ComputeAclCreateAclsResponse[]

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

computeAclListAclsSAclId()

computeAclListAclsSAclId($options): \Fastly\Model\ComputeAclCreateAclsResponse // Describe an ACL

Describe an ACL.

Example

    $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;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
acl_id string

Return type

\Fastly\Model\ComputeAclCreateAclsResponse

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

computeAclLookupAcls()

computeAclLookupAcls($options): \Fastly\Model\ComputeAclLookup // Lookup an ACL

Find a matching ACL entry for an IP address.

Example

    $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;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
acl_id string
acl_ip string

Return type

\Fastly\Model\ComputeAclLookup

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

computeAclUpdateAcls()

computeAclUpdateAcls($options) // Update an ACL

Update an ACL.

Example

    $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;
}

Options

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]

Return type

void (empty response body)

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