> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# سجلات DNS

> سرد سجلات DNS وإنشاؤها وتحديثها وحذفها.

# سجلات DNS

سرد سجلات DNS وإنشاؤها وتحديثها وحذفها.

<script src="/locale-bridge.js" />

تستخدم الأمثلة وضع الكود في A2A. يتيح MCP وضع الكود نفسه عبر أداة `execute`.

## الوظائف

### `dns_records.add`

```text theme={null}
dns_records.add(account_id: str, domain: str, name: str, type: str, value: str, prio?: int | null, ttl?: int) -> DNSRecord
```

سجلات DNS: `dns_records.add`.

| الخاصية        | القيمة                                              | الخاصية         | القيمة              |
| -------------- | --------------------------------------------------- | --------------- | ------------------- |
| الإذن المطلوب  | `dns.record.create`                                 | المصادقة مطلوبة | `نعم`               |
| وضع التنفيذ    | `sync`                                              | الصلاحية        | `dns.record.create` |
| نوع المورد     | `account`                                           | حقل معرف المورد | `account_id`        |
| مسار API العام | `POST /v1/public/accounts/{account_id}/dns-records` |                 |                     |

<AccordionGroup>
  <Accordion title="الوسيطات">
    | الاسم        | النوع         | مطلوب |
    | ------------ | ------------- | ----- |
    | `account_id` | `str`         | نعم   |
    | `domain`     | `str`         | نعم   |
    | `name`       | `str`         | نعم   |
    | `type`       | `str`         | نعم   |
    | `value`      | `str`         | نعم   |
    | `prio`       | `int \| null` | لا    |
    | `ttl`        | `int`         | لا    |
  </Accordion>

  <Accordion title="القيم المرجعة">
    | الحقل               | النوع         | مطلوب |
    | ------------------- | ------------- | ----- |
    | `id`                | `int`         | نعم   |
    | `name`              | `str`         | نعم   |
    | `ttl`               | `int`         | نعم   |
    | `type`              | `str`         | نعم   |
    | `value`             | `str`         | نعم   |
    | `is_system_managed` | `bool`        | لا    |
    | `priority`          | `int \| null` | لا    |
  </Accordion>

  <Accordion title="مثال A2A">
    الطلب:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "dns_records.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", name=\"<string>\", type=\"<string>\", value=\"<string>\", prio=123, ttl=123)"
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "dns_records.add",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="مثال MCP">
    الطلب:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "dns_records.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", name=\"<string>\", type=\"<string>\", value=\"<string>\", prio=123, ttl=123)"
        }
      }
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"dns_records.add\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `dns_records.delete`

```text theme={null}
dns_records.delete(account_id: str, record_id: int) -> {}
```

سجلات DNS: `dns_records.delete`.

| الخاصية        | القيمة                                                            | الخاصية         | القيمة              |
| -------------- | ----------------------------------------------------------------- | --------------- | ------------------- |
| الإذن المطلوب  | `dns.record.delete`                                               | المصادقة مطلوبة | `نعم`               |
| وضع التنفيذ    | `sync`                                                            | الصلاحية        | `dns.record.delete` |
| نوع المورد     | `account`                                                         | حقل معرف المورد | `account_id`        |
| مسار API العام | `DELETE /v1/public/accounts/{account_id}/dns-records/{record_id}` |                 |                     |

<AccordionGroup>
  <Accordion title="الوسيطات">
    | الاسم        | النوع | مطلوب |
    | ------------ | ----- | ----- |
    | `account_id` | `str` | نعم   |
    | `record_id`  | `int` | نعم   |
  </Accordion>

  <Accordion title="القيم المرجعة">
    | الحقل    | النوع | مطلوب |
    | -------- | ----- | ----- |
    | `result` | `{}`  | نعم   |
  </Accordion>

  <Accordion title="مثال A2A">
    الطلب:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "dns_records.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", record_id=123)"
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "dns_records.delete",
          "status": "completed",
          "result": {}
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="مثال MCP">
    الطلب:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "dns_records.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", record_id=123)"
        }
      }
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"dns_records.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `dns_records.list`

```text theme={null}
dns_records.list(account_id: str, domain?: str | null, name?: str | null, page?: int, page_size?: int, type?: str | null) -> Page[DNSRecord]
```

سجلات DNS: `dns_records.list`.

| الخاصية        | القيمة                                             | الخاصية         | القيمة            |
| -------------- | -------------------------------------------------- | --------------- | ----------------- |
| الإذن المطلوب  | `dns.record.view`                                  | المصادقة مطلوبة | `نعم`             |
| وضع التنفيذ    | `sync`                                             | الصلاحية        | `dns.record.view` |
| نوع المورد     | `account`                                          | حقل معرف المورد | `account_id`      |
| مسار API العام | `GET /v1/public/accounts/{account_id}/dns-records` |                 |                   |

<AccordionGroup>
  <Accordion title="الوسيطات">
    | الاسم        | النوع         | مطلوب |
    | ------------ | ------------- | ----- |
    | `account_id` | `str`         | نعم   |
    | `domain`     | `str \| null` | لا    |
    | `name`       | `str \| null` | لا    |
    | `page`       | `int`         | لا    |
    | `page_size`  | `int`         | لا    |
    | `type`       | `str \| null` | لا    |
  </Accordion>

  <Accordion title="القيم المرجعة">
    | الحقل       | النوع                                                                                                                     | مطلوب |
    | ----------- | ------------------------------------------------------------------------------------------------------------------------- | ----- |
    | `items`     | `[{"id": int, "name": str, "ttl": int, "type": str, "value": str, "is_system_managed"?: bool, "priority"?: int \| null}]` | نعم   |
    | `page`      | `int`                                                                                                                     | نعم   |
    | `page_size` | `int`                                                                                                                     | نعم   |
    | `total`     | `int`                                                                                                                     | نعم   |
  </Accordion>

  <Accordion title="مثال A2A">
    الطلب:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "dns_records.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", name=\"<string>\", page=123, page_size=123, type=\"<string>\")"
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "dns_records.list",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="مثال MCP">
    الطلب:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "dns_records.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", name=\"<string>\", page=123, page_size=123, type=\"<string>\")"
        }
      }
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"dns_records.list\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `dns_records.update`

```text theme={null}
dns_records.update(account_id: str, record_id: int, disabled?: bool | null, name?: str | null, prio?: int | null, ttl?: int | null, value?: str | null) -> DNSRecord
```

سجلات DNS: `dns_records.update`.

| الخاصية        | القيمة                                                           | الخاصية         | القيمة              |
| -------------- | ---------------------------------------------------------------- | --------------- | ------------------- |
| الإذن المطلوب  | `dns.record.update`                                              | المصادقة مطلوبة | `نعم`               |
| وضع التنفيذ    | `sync`                                                           | الصلاحية        | `dns.record.update` |
| نوع المورد     | `account`                                                        | حقل معرف المورد | `account_id`        |
| مسار API العام | `PATCH /v1/public/accounts/{account_id}/dns-records/{record_id}` |                 |                     |

<AccordionGroup>
  <Accordion title="الوسيطات">
    | الاسم        | النوع          | مطلوب |
    | ------------ | -------------- | ----- |
    | `account_id` | `str`          | نعم   |
    | `record_id`  | `int`          | نعم   |
    | `disabled`   | `bool \| null` | لا    |
    | `name`       | `str \| null`  | لا    |
    | `prio`       | `int \| null`  | لا    |
    | `ttl`        | `int \| null`  | لا    |
    | `value`      | `str \| null`  | لا    |
  </Accordion>

  <Accordion title="القيم المرجعة">
    | الحقل               | النوع         | مطلوب |
    | ------------------- | ------------- | ----- |
    | `id`                | `int`         | نعم   |
    | `name`              | `str`         | نعم   |
    | `ttl`               | `int`         | نعم   |
    | `type`              | `str`         | نعم   |
    | `value`             | `str`         | نعم   |
    | `is_system_managed` | `bool`        | لا    |
    | `priority`          | `int \| null` | لا    |
  </Accordion>

  <Accordion title="مثال A2A">
    الطلب:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "dns_records.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", record_id=123, disabled=true, name=\"<string>\", prio=123, ttl=123, value=\"<string>\")"
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "dns_records.update",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="مثال MCP">
    الطلب:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "dns_records.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", record_id=123, disabled=true, name=\"<string>\", prio=123, ttl=123, value=\"<string>\")"
        }
      }
    }
    ```

    الاستجابة:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"dns_records.update\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
