> For the complete documentation index, see [llms.txt](https://patryqhyper.gitbook.io/pterodactyl-php-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patryqhyper.gitbook.io/pterodactyl-php-sdk/api-client/server-greater-than-network-allocations.md).

# Server -> Network (allocations)

$client->client->server->allocations

### List allocations

```php
$client->client->server->allocations->list(string $serverIdentifier);
```

### Assign allocation

```php
$client->client->server->allocations->assign(string $serverIdentifier);
```

### Set allocation note

```php
$client->client->server->allocations->setNote(string $serverIdentifier, int $allocationId, string $notes);
```

### Set primary allocation

```php
$client->client->server->allocations->setPrimary(string $serverIdentifier, int $allocationId);
```

### Unassign allocation

```php
$client->client->server->allocations->unassign(string $serverIdentifier, int $allocationId);
```
