Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```bash
appwrite projects create-schedule \
--project-id <PROJECT_ID> \
--resource-type function \
--resource-id <RESOURCE_ID> \
--schedule ''
```
5 changes: 5 additions & 0 deletions examples/1.8.x/console-cli/examples/projects/get-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite projects get-schedule \
--project-id <PROJECT_ID> \
--schedule-id <SCHEDULE_ID>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```bash
appwrite projects list-schedules \
--project-id <PROJECT_ID>
```
20 changes: 20 additions & 0 deletions examples/1.8.x/console-web/examples/projects/create-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```javascript
import { Client, Projects, ResourceType } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.createSchedule({
projectId: '<PROJECT_ID>',
resourceType: ResourceType.Function,
resourceId: '<RESOURCE_ID>',
schedule: '',
active: false, // optional
data: {} // optional
});

console.log(result);
```
16 changes: 16 additions & 0 deletions examples/1.8.x/console-web/examples/projects/get-schedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.getSchedule({
projectId: '<PROJECT_ID>',
scheduleId: '<SCHEDULE_ID>'
});

console.log(result);
```
17 changes: 17 additions & 0 deletions examples/1.8.x/console-web/examples/projects/list-schedules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.listSchedules({
projectId: '<PROJECT_ID>',
queries: [], // optional
total: false // optional
});

console.log(result);
```
19 changes: 19 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/create-block.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;
use Cloud\Platform\Enums\ResourceType;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->createBlock(
projectId: '<PROJECT_ID>',
resourceType: ResourceType::PROJECTS(),
resourceId: '<RESOURCE_ID>', // optional
reason: '<REASON>', // optional
expiredAt: '' // optional
);```
21 changes: 21 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/create-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->createEvent(
type: '<TYPE>',
subject: '<SUBJECT>',
data: [],
specversion: '<SPECVERSION>', // optional
source: '<SOURCE>', // optional
id: '<ID>', // optional
time: '<TIME>', // optional
datacontenttype: '<DATACONTENTTYPE>' // optional
);```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->createProjectStats(
projectId: '<PROJECT_ID>',
name: '<NAME>',
key: '<KEY>',
value: null
);```
17 changes: 17 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/delete-block.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;
use Cloud\Platform\Enums\ResourceType;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->deleteBlock(
projectId: '<PROJECT_ID>',
resourceType: ResourceType::PROJECTS(),
resourceId: '<RESOURCE_ID>' // optional
);```
14 changes: 14 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/get-dns-records.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->getDNSRecords(
domain: ''
);```
14 changes: 14 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/get-domain-zone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->getDomainZone(
domain: ''
);```
14 changes: 14 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/get-domain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->getDomain(
domain: ''
);```
14 changes: 14 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/get-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->getRule(
domain: ''
);```
14 changes: 14 additions & 0 deletions examples/1.8.x/manager-php/examples/manager/list-blocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Manager;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$manager = new Manager($client);

$result = $manager->listBlocks(
projectId: '<PROJECT_ID>'
);```
21 changes: 21 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/create-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$regions = new Regions($client);

$result = $regions->createEvent(
type: '<TYPE>',
subject: '<SUBJECT>',
data: [],
specversion: '<SPECVERSION>', // optional
source: '<SOURCE>', // optional
id: '<ID>', // optional
time: '<TIME>', // optional
datacontenttype: '<DATACONTENTTYPE>' // optional
);```
26 changes: 26 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/create-execution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;
use Cloud\Platform\Enums\RequestMethod;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$regions = new Regions($client);

$result = $regions->createExecution(
deploymentId: '',
responseStatusCode: 100,
responseHeaders: [],
responseSize: null,
requestPath: '<REQUEST_PATH>',
requestMethod: RequestMethod::GET(),
requestHeaders: [],
requestSize: null,
errors: '<ERRORS>',
logs: '<LOGS>',
duration: null,
projectId: '' // optional
);```
15 changes: 15 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/create-usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject(''); //

$regions = new Regions($client);

$result = $regions->createUsage(
usage: []
);```
19 changes: 19 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/delete-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;
use Cloud\Platform\Enums\CollectionId;
use Cloud\Platform\Enums\Region;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject(''); //

$regions = new Regions($client);

$result = $regions->deleteCache(
documentId: '<DOCUMENT_ID>',
collectionId: CollectionId::PROJECTS(),
region: Region::FRA()
);```
15 changes: 15 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/delete-project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
->setProject(''); //

$regions = new Regions($client);

$result = $regions->deleteProject(
projectId: '<PROJECT_ID>'
);```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$regions = new Regions($client);

$result = $regions->getDeploymentRuntime(
deploymentId: '',
projectId: '' // optional
);```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$regions = new Regions($client);

$result = $regions->getFunctionRuntime(
functionId: '',
projectId: '' // optional
);```
15 changes: 15 additions & 0 deletions examples/1.8.x/manager-php/examples/regions/get-site-runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```php
<?php

use Cloud\Platform\Client;
use Cloud\Platform\Services\Regions;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint

$regions = new Regions($client);

$result = $regions->getSiteRuntime(
siteId: '',
projectId: '' // optional
);```
Loading