Identity クラス

  • java.lang.Object
    • com.microsoft.azure.management.resources.Identity

public class Identity

リソースの ID。

コンストラクターの概要

コンストラクター 説明
Identity()

メソッドの概要

修飾子と型 メソッドと説明
java.lang.String principalId()

リソース ID のプリンシパル ID を取得します。

java.lang.String tenantId()

リソースのテナント ID を取得します。

ResourceIdentityType type()

ID の種類を取得します。

java.util.Map<java.lang.String,IdentityUserAssignedIdentitiesValue> userAssignedIdentities()

リソースに関連付けられているユーザー ID の一覧を取得します。

Identity withType(ResourceIdentityType type)

ID の種類を設定します。

Identity withUserAssignedIdentities(Map<String,IdentityUserAssignedIdentitiesValue> userAssignedIdentities)

リソースに関連付けられているユーザー ID の一覧を設定します。

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

コンストラクターの詳細

Identity

public Identity()

メソッドの詳細

principalId

public String principalId()

リソース ID のプリンシパル ID を取得します。

Returns:

principalId 値

tenantId

public String tenantId()

リソースのテナント ID を取得します。

Returns:

tenantId 値

type

public ResourceIdentityType type()

ID の種類を取得します。 使用可能な値は、'SystemAssigned'、'UserAssigned'、'SystemAssigned、UserAssigned'、'None' です。

Returns:

型の値

userAssignedIdentities

public Map userAssignedIdentities()

リソースに関連付けられているユーザー ID の一覧を取得します。 ユーザー ID ディクショナリ キーの参照は、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' という形式の ARM リソース ID になります。

Returns:

userAssignedIdentities 値

withType

public Identity withType(ResourceIdentityType type)

ID の種類を設定します。 使用可能な値は、'SystemAssigned'、'UserAssigned'、'SystemAssigned、UserAssigned'、'None' です。

Parameters:

type - 設定する型の値

Returns:

ID オブジェクト自体。

withUserAssignedIdentities

public Identity withUserAssignedIdentities(Map userAssignedIdentities)

リソースに関連付けられているユーザー ID の一覧を設定します。 ユーザー ID ディクショナリ キーの参照は、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}' という形式の ARM リソース ID になります。

Parameters:

userAssignedIdentities - 設定する userAssignedIdentities 値

Returns:

ID オブジェクト自体。

適用対象