Jit Network Access Policies - List By Resource Group And Region
Beleid voor het beveiligen van resources met Behulp van Just-In-Time-toegangsbeheer voor het abonnement, de locatie
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies?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 Locaties ophalen |
resource
|
path | True |
string |
De naam van de resourcegroep in het abonnement van de gebruiker. De naam is niet hoofdlettergevoelig. Regex pattern: |
subscription
|
path | True |
string |
Azure-abonnements-id Regex pattern: |
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
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Get JIT network access policies on a resource group from a security data location
Sample Request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies?api-version=2020-01-01
Sample Response
{
"value": [
{
"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 |
Algemene foutreactie voor alle Azure Resource Manager-API's om foutdetails voor mislukte bewerkingen te retourneren. (Dit volgt ook de indeling van de OData-foutreactie.) |
Cloud |
De foutdetails. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Jit |
|
Jit |
|
Jit |
|
Jit |
|
Jit |
|
Jit |
|
Jit |
|
protocol | |
status |
De status van de poort |
status |
Een beschrijving van waarom de de |
CloudError
Algemene foutreactie voor alle Azure Resource Manager-API's om foutdetails voor mislukte bewerkingen te retourneren. (Dit volgt ook de indeling van de OData-foutreactie.)
Name | Type | Description |
---|---|---|
error.additionalInfo |
De fout 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 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 type aanvullende informatie. |
JitNetworkAccessPoliciesList
Name | Type | Description |
---|---|---|
nextLink |
string |
De URI om de volgende pagina op te halen. |
value |
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 |
Sluiten elkaar uit 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 uit met de parameter allowedSourceAddressPrefix. |
maxRequestAccessDuration |
string |
Aanvragen voor maximale duur kunnen worden gedaan. 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 initiƫrende aanvraag |
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 |
Sluiten elkaar uit 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 uit met de parameter allowedSourceAddressPrefix. |
endTimeUtc |
string |
De datum & tijdstip waarop de aanvraag eindigt op UTC |
mappedPort |
integer |
De poort die aan deze poort |
number |
integer |
|
status |
De status van de poort |
|
statusReason |
Een beschrijving van waarom de 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 waarom de de status
waarde heeft
Name | Type | Description |
---|---|---|
Expired |
string |
|
NewerRequestInitiated |
string |
|
UserRequested |
string |