コンテンツにスキップ

アカウントの管理

Each customer or team that uses Cloudflare should have their own account. This ensures proper security and access of resources. Each account acts as a container of zones and other resources. Depending on your needs, you may even provision multiple accounts for a single customer or team.

When you create an account with the Tenant API, your Cloudflare user owns that account from creation, ongoing management, and finally deletion.

アカウントの作成

Each customer or team that uses Cloudflare should have their own account. This ensures proper security and access of resources. Each account acts as a container of zones and other resources. Depending on your needs, you may even provision multiple accounts for a single customer or team.

When you create an account with the Tenant API, your Cloudflare user owns that account from creation, ongoing management, and finally deletion.

To create an account under your tenant using the dashboard:

  1. Log into the Cloudflare dashboard.
  2. Go to Tenants > Managed Accounts.
  3. Select Create Account.
  4. Enter the Account Name, Account Description, and Tenant Unit.
  5. Choose the appropriate account subscription.
  6. Select Add Account.

アカウントの表示

テナントAPIを使用してアカウントを作成すると、Cloudflareユーザーがそのアカウントを作成から管理、最終的な削除まで所有します。

ダッシュボードを使用して、テナントが所有するアカウントを表示するには:

  1. Cloudflareダッシュボードにログインします。
  2. テナント > 管理アカウントに移動します。

アカウントの更新

アカウントを更新するには、PUTリクエストを/accounts/{account_id}エンドポイントに送信します。

アカウントの削除

作成したアカウントを削除するには、DELETEリクエストを/accounts/{account_id}エンドポイントに送信します。

アカウントの削除は永久的であり、そのアカウントに関連するゾーンやその他のリソースも削除されます。

リクエスト
curl --request DELETE \
https://api.cloudflare.com/client/v4/accounts/{account_id} \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>"

成功したリクエストは、操作を確認するためのidを返します:

レスポンス
{
"result": {
"id": "1b16db169c9cb7853009857198fae1b9"
},
"success": true,
"errors": [],
"messages": []
}