Jit Network Access Policies - Get
Beleid voor het beveiligen van resources met Just-In-Time-toegangsbeheer voor het abonnement, de locatie
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}?api-version=2020-01-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
asc
|
path | True |
string |
De locatie waar ASC de gegevens van het abonnement opslaat. kan worden opgehaald uit Get-locaties |
jit
|
path | True |
string |
Naam van een Just-In-Time-toegangsconfiguratiebeleid. |
resource
|
path | True |
string |
De naam van de resourcegroep binnen het abonnement van de gebruiker. De naam is niet hoofdlettergevoelig. Regex-patroon: |
subscription
|
path | True |
string |
Azure-abonnements-id Regex-patroon: |
api-version
|
query | True |
string |
API-versie voor de bewerking |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get JIT network access policy
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default?api-version=2020-01-01
Voorbeeldrespons
{
"kind": "Basic",
"properties": {
"virtualMachines": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
"ports": [
{
"number": 22,
"protocol": "*",
"allowedSourceAddressPrefix": "*",
"maxRequestAccessDuration": "PT3H"
},
{
"number": 3389,
"protocol": "*",
"allowedSourceAddressPrefix": "*",
"maxRequestAccessDuration": "PT3H"
}
]
}
],
"requests": [
{
"virtualMachines": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
"ports": [
{
"number": 3389,
"allowedSourceAddressPrefix": "192.127.0.2",
"endTimeUtc": "2018-05-17T09:06:45.5691611Z",
"status": "Initiated",
"statusReason": "UserRequested"
}
]
}
],
"startTimeUtc": "2018-05-17T08:06:45.5691611Z",
"requestor": "barbara@contoso.com",
"justification": "testing a new version of the product"
}
],
"provisioningState": "Succeeded"
},
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default",
"name": "default",
"type": "Microsoft.Security/locations/jitNetworkAccessPolicies",
"location": "westeurope"
}
Definities
Name | Description |
---|---|
Cloud |
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.) |
Cloud |
De foutdetails. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Jit |
|
Jit |
|
Jit |
|
Jit |
|
Jit |
|
Jit |
|
protocol | |
status |
De status van de poort |
status |
Een beschrijving van de reden waarom de |
CloudError
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)
Name | Type | Description |
---|---|---|
error.additionalInfo |
De fout bevat aanvullende informatie. |
|
error.code |
string |
De foutcode. |
error.details |
De foutdetails. |
|
error.message |
string |
Het foutbericht. |
error.target |
string |
Het foutdoel. |
CloudErrorBody
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
JitNetworkAccessPolicy
Name | Type | Description |
---|---|---|
id |
string |
Resource-id |
kind |
string |
Soort resource |
location |
string |
Locatie waar de resource is opgeslagen |
name |
string |
Resourcenaam |
properties.provisioningState |
string |
Hiermee haalt u de inrichtingsstatus van het Just-In-Time-beleid op. |
properties.requests | ||
properties.virtualMachines |
Configuraties voor het resourcetype Microsoft.Compute/virtualMachines. |
|
type |
string |
Resourcetype |
JitNetworkAccessPolicyVirtualMachine
Name | Type | Description |
---|---|---|
id |
string |
Resource-id van de virtuele machine die is gekoppeld aan dit beleid |
ports |
Poortconfiguraties voor de virtuele machine |
|
publicIpAddress |
string |
Openbaar IP-adres van de Azure Firewall die is gekoppeld aan dit beleid, indien van toepassing |
JitNetworkAccessPortRule
Name | Type | Description |
---|---|---|
allowedSourceAddressPrefix |
string |
Wederzijds exclusief met de parameter allowedSourceAddressPrefixes. Moet een IP-adres of CIDR zijn, bijvoorbeeld '192.168.0.3' of '192.168.0.0/16'. |
allowedSourceAddressPrefixes |
string[] |
Sluiten elkaar wederzijds uit met de parameter allowedSourceAddressPrefix. |
maxRequestAccessDuration |
string |
Aanvragen voor maximale duur kunnen worden ingediend. In ISO 8601-duurnotatie. Minimaal 5 minuten, maximaal 1 dag |
number |
integer |
|
protocol |
JitNetworkAccessRequest
Name | Type | Description |
---|---|---|
justification |
string |
De reden voor het indienen van de initieeraanvraag |
requestor |
string |
De identiteit van de persoon die het verzoek heeft ingediend |
startTimeUtc |
string |
De begintijd van de aanvraag in UTC |
virtualMachines |
JitNetworkAccessRequestPort
Name | Type | Description |
---|---|---|
allowedSourceAddressPrefix |
string |
Wederzijds exclusief met de parameter allowedSourceAddressPrefixes. Moet een IP-adres of CIDR zijn, bijvoorbeeld '192.168.0.3' of '192.168.0.0/16'. |
allowedSourceAddressPrefixes |
string[] |
Sluiten elkaar wederzijds uit met de parameter allowedSourceAddressPrefix. |
endTimeUtc |
string |
De datum & tijdstip waarop de aanvraag eindigt in UTC |
mappedPort |
integer |
De poort die is toegewezen aan de |
number |
integer |
|
status |
De status van de poort |
|
statusReason |
Een beschrijving van de reden waarom de |
JitNetworkAccessRequestVirtualMachine
Name | Type | Description |
---|---|---|
id |
string |
Resource-id van de virtuele machine die is gekoppeld aan dit beleid |
ports |
De poorten die zijn geopend voor de virtuele machine |
protocol
Name | Type | Description |
---|---|---|
* |
string |
|
TCP |
string |
|
UDP |
string |
status
De status van de poort
Name | Type | Description |
---|---|---|
Initiated |
string |
|
Revoked |
string |
statusReason
Een beschrijving van de reden waarom de status
de waarde heeft
Name | Type | Description |
---|---|---|
Expired |
string |
|
NewerRequestInitiated |
string |
|
UserRequested |
string |