DESCRIBE NETWORK RULE

ネットワークルールに指定されたプロパティについて説明します。

DESCRIBE は DESC に短縮できます。

こちらもご参照ください。

DROP NETWORK RULEALTER NETWORK RULECREATE NETWORK RULESHOW NETWORK RULES

構文

DESC[RIBE] NETWORK RULE <name>
Copy

パラメーター

name

説明するネットワークルールの識別子を指定します。

識別子にスペースまたは特殊文字が含まれる場合は、文字列全体を二重引用符で囲む必要があります。二重引用符で囲まれた識別子は、大文字と小文字が区別されます。

出力

コマンド出力では、次の列にネットワークルールプロパティとメタデータが提供されます。

説明

created_on

ネットワークルールが作成された日時。

name

ネットワークルールの名前。

database_name

ネットワークルールが作成されたスキーマを含むデータベース。

schema_name

ネットワークルールが作成されたスキーマ。

owner

ネットワークルールに対して OWNERSHIP 権限を持つロール。

comment

ネットワークルールに関連する説明テキスト。

type

ネットワークルールの TYPE プロパティの値。

mode

ネットワークルールの MODE プロパティの値。

value_list

ネットワークルールの VALUE_LIST プロパティで定義されているネットワーク識別子。

アクセス制御の要件

この操作の実行に使用される ロール には、少なくとも次の 権限 が必要です。

権限

オブジェクト

注意

OWNERSHIP

ネットワークルール

OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege).

指定された権限のセットを使用してカスタムロールを作成する手順については、 カスタムロールの作成 をご参照ください。

セキュリティ保護可能なオブジェクト に対して SQL アクションを実行するためのロールと権限付与に関する一般的な情報については、 アクセス制御の概要 をご参照ください。

使用上の注意

  • このコマンドの出力を後処理するには、 パイプ演算子->>)または RESULT_SCAN 関数。どちらのコンストラクトも、出力を クエリできる結果セットとして扱います。

    For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.

    When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column type, specify SELECT "type".

    You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.

myrule という名前のネットワークルールを説明します。

DESC NETWORK RULE myrule;
Copy