[comment]: # aside: 1

[comment]: # translation:outdated

[comment]: # ({ee4a2645-28092341})
# User macroオブジェクト

次のオブジェクトは、`usermacro`APIに直接関連しています。

[comment]: # ({/ee4a2645-28092341})

[comment]: # ({ddaa8b63-e654cd12})
### Global macro

global macro オブジェクトには次のプロパティがあります。

|プロパティ|[タイプ](/manual/api/reference_commentary#data_types)|説明|
|--|--|------|
|globalmacroid|string|*(読取専用)* グローバルマクロのID。|
|**macro**<br>(必須)|string|マクロ文字列|
|**value**<br>(必須)|string|マクロの値|
|type|integer|マクロのタイプ<br><br>有効な値:<br>0 - *(デフォルト)* テキストマクロ<br>1 - シークレット マクロ<br>2 - Vault シークレット|
|description|string|マクロの説明|

[comment]: # ({/ddaa8b63-e654cd12})

[comment]: # ({573dd031-5a3a9f9f})
### Host macro

host macro objectはホスト、ホスト プロトタイプ、またはテンプレートで使用可能なマクロを定義します。 次のプロパティがあります。

|プロパティ|[タイプ](/manual/api/reference_commentary#data_types)|説明|
|--|--|------|
|hostmacroid|string|*(読取専用)* ホストマクロのID|
|**hostid**<br>(必須)|string|マクロが属するホストのID|
|**macro**<br>(必須)|string|マクロ文字列|
|**value**<br>(必須)|string|マクロの値|
|type|integer|マクロのタイプ<br><br>有効な値:<br>0 - *(デフォルト)* テキストマクロ<br>1 - シークレット マクロ<br>2 - Vault シークレット|
|description|string|マクロの説明|

[comment]: # ({/573dd031-5a3a9f9f})
