次の方法で共有


Get-AzNetworkSecurityPerimeterAccessRule

指定した NSP アクセス規則を名前で取得します。

構文

List (既定)

Get-AzNetworkSecurityPerimeterAccessRule
    -ProfileName <String>
    -ResourceGroupName <String>
    -SecurityPerimeterName <String>
    [-SubscriptionId <String[]>]
    [-SkipToken <String>]
    [-Top <Int32>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentityProfile

Get-AzNetworkSecurityPerimeterAccessRule
    -Name <String>
    -ProfileInputObject <INetworkSecurityPerimeterIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentityNetworkSecurityPerimeter

Get-AzNetworkSecurityPerimeterAccessRule
    -Name <String>
    -ProfileName <String>
    -NetworkSecurityPerimeterInputObject <INetworkSecurityPerimeterIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Get

Get-AzNetworkSecurityPerimeterAccessRule
    -Name <String>
    -ProfileName <String>
    -ResourceGroupName <String>
    -SecurityPerimeterName <String>
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentity

Get-AzNetworkSecurityPerimeterAccessRule
    -InputObject <INetworkSecurityPerimeterIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

説明

指定した NSP アクセス規則を名前で取得します。

例 1: NetworkSecurityPerimeter AccessRules を一覧表示する

Get-AzNetworkSecurityPerimeterAccessRule -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
Name                 ResourceGroupName
----                 -----------------
access-rule-test-1   rg-test-1
access-rule-test-2   rg-test-1

NetworkSecurityPerimeter AccessRules を一覧表示する

例 2: 名前で NetworkSecurityPerimeter AccessRule を取得する

Get-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-1 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
AddressPrefix                : {198.168.0.0/32}
Direction                    : Inbound
EmailAddress                 : {}
FullyQualifiedDomainName     : {}
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
                                /Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1
                                /accessRules/access-rule-test-1
Name                         : access-rule-test-1
NetworkSecurityPerimeter     : {}
PhoneNumber                  : {}
ProvisioningState            : Succeeded
ResourceGroupName            : rg-test-1
ServiceTag                   :
Subscription                 : {}
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
Type                         : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules

名前で NetworkSecurityPerimeter AccessRule を取得する

例 3: ID による NetworkSecurityPerimeter AccessRule の取得 (パイプを使用)

$GETObj = Get-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-1 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1
Get-AzNetworkSecurityPerimeterAccessRule -InputObject $GETObj
AddressPrefix                : {198.168.0.0/32}
Direction                    : Inbound
EmailAddress                 : {}
FullyQualifiedDomainName     : {}
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
                                /Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1
                                /accessRules/access-rule-test-1
Name                         : access-rule-test-1
NetworkSecurityPerimeter     : {}
PhoneNumber                  : {}
ProvisioningState            : Succeeded
ResourceGroupName            : rg-test-1
ServiceTag                   :
Subscription                 : {}
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
Type                         : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules

Id による NetworkSecurityPerimeter AccessRule の取得 (パイプを使用)

パラメーター

-DefaultProfile

DefaultProfile パラメーターは機能しません。 別のサブスクリプションに対してコマンドレットを実行する場合は、使用可能な場合は SubscriptionId パラメーターを使用します。

パラメーターのプロパティ

型:PSObject
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-InputObject

IDENTITY パラメーター

パラメーターのプロパティ

型:INetworkSecurityPerimeterIdentity
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetViaIdentity
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

NSP アクセス規則の名前。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AccessRuleName

パラメーター セット

GetViaIdentityProfile
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
GetViaIdentityNetworkSecurityPerimeter
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
Get
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-NetworkSecurityPerimeterInputObject

IDENTITY パラメーター

パラメーターのプロパティ

型:INetworkSecurityPerimeterIdentity
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetViaIdentityNetworkSecurityPerimeter
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ProfileInputObject

IDENTITY パラメーター

パラメーターのプロパティ

型:INetworkSecurityPerimeterIdentity
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetViaIdentityProfile
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ProfileName

NSP プロファイルの名前。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:SecurityPerimeterProfileName, NSPProfileName

パラメーター セット

List
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
GetViaIdentityNetworkSecurityPerimeter
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
Get
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ResourceGroupName

リソース グループの名前。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

List
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
Get
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-SecurityPerimeterName

ネットワーク セキュリティ境界の名前。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:NetworkSecurityPerimeterName, NSPName

パラメーター セット

List
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
Get
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-SkipToken

SkipToken は、前の操作で部分的な結果が返された場合にのみ使用されます。 前の応答に nextLink 要素が含まれている場合、nextLink 要素の値には、後続の呼び出しに使用する開始点を指定する skipToken パラメーターが含まれます。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

List
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-SubscriptionId

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

パラメーターのプロパティ

型:

String[]

規定値:(Get-AzContext).Subscription.Id
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

List
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
Get
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Top

サーバーから返されるレコードの最大数を指定する省略可能なクエリ パラメーター。

パラメーターのプロパティ

型:Int32
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

List
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

INetworkSecurityPerimeterIdentity

出力

INspAccessRule