Jit Network Access Policies - List
Tam Zamanında erişim denetimini kullanarak kaynakları korumaya yönelik ilkeler.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies?api-version=2015-06-01-preview
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
Azure abonelik kimliği |
|
api-version
|
query | True |
string |
İşlem için API sürümü |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
TAMAM |
|
| Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Get JIT network access policies on a subscription
Örnek isteği
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/jitNetworkAccessPolicies?api-version=2015-06-01-preview
Örnek yanıt
{
"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"
}
]
}
Tanımlar
| Name | Description |
|---|---|
|
Cloud |
Başarısız işlemlerin hata ayrıntılarını döndürmek için tüm Azure Resource Manager API'leri için genel hata yanıtı. (Bu, OData hata yanıt biçimini de izler.). |
|
Cloud |
Hata ayrıntısı. |
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Jit |
|
|
Jit |
|
|
Jit |
|
|
Jit |
|
|
Jit |
|
|
Jit |
|
|
Jit |
|
| protocol | |
| status |
Bağlantı noktasının durumu |
|
status |
|
CloudError
Başarısız işlemlerin hata ayrıntılarını döndürmek için tüm Azure Resource Manager API'leri için genel hata yanıtı. (Bu, OData hata yanıt biçimini de izler.).
| Name | Tür | Description |
|---|---|---|
| error.additionalInfo |
Hata ek bilgileri. |
|
| error.code |
string |
Hata kodu. |
| error.details |
Hata ayrıntıları. |
|
| error.message |
string |
Hata iletisi. |
| error.target |
string |
Hata hedefi. |
CloudErrorBody
Hata ayrıntısı.
| Name | Tür | Description |
|---|---|---|
| additionalInfo |
Hata ek bilgileri. |
|
| code |
string |
Hata kodu. |
| details |
Hata ayrıntıları. |
|
| message |
string |
Hata iletisi. |
| target |
string |
Hata hedefi. |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
| Name | Tür | Description |
|---|---|---|
| info |
object |
Ek bilgiler. |
| type |
string |
Ek bilgi türü. |
JitNetworkAccessPoliciesList
| Name | Tür | Description |
|---|---|---|
| nextLink |
string |
Sonraki sayfayı getirmek için URI. |
| value |
JitNetworkAccessPolicy
| Name | Tür | Description |
|---|---|---|
| id |
string |
Kaynak Kimliği |
| kind |
string |
Kaynak türü |
| location |
string |
Kaynağın depolandığı konum |
| name |
string |
Kaynak adı |
| properties.provisioningState |
string |
Tam Zamanında ilkesinin sağlama durumunu alır. |
| properties.requests | ||
| properties.virtualMachines |
Microsoft.Compute/virtualMachines kaynak türü yapılandırmaları. |
|
| type |
string |
Kaynak türü |
JitNetworkAccessPolicyVirtualMachine
| Name | Tür | Description |
|---|---|---|
| id |
string |
Bu ilkeye bağlı sanal makinenin kaynak kimliği |
| ports |
Sanal makine için bağlantı noktası yapılandırmaları |
|
| publicIpAddress |
string |
Varsa, bu ilkeye bağlı Azure Güvenlik Duvarı'nın genel IP adresi |
JitNetworkAccessPortRule
| Name | Tür | Description |
|---|---|---|
| allowedSourceAddressPrefix |
string |
"allowedSourceAddressPrefixes" parametresiyle birbirini dışlar. "192.168.0.3" veya "192.168.0.0/16" gibi bir IP adresi veya CIDR olmalıdır. |
| allowedSourceAddressPrefixes |
string[] |
"allowedSourceAddressPrefix" parametresiyle birbirini dışlar. |
| maxRequestAccessDuration |
string |
En fazla süre istekleri için yapılabilir. ISO 8601 süre biçiminde. En az 5 dakika, en fazla 1 gün |
| number |
integer minimum: 0maximum: 65535 |
|
| protocol |
JitNetworkAccessRequest
| Name | Tür | Description |
|---|---|---|
| justification |
string |
Başlatma isteğinde bulunmanın gerekçesi |
| requestor |
string |
İsteği yapan kişinin kimliği |
| startTimeUtc |
string (date-time) |
İsteğin UTC olarak başlangıç saati |
| virtualMachines |
JitNetworkAccessRequestPort
| Name | Tür | Description |
|---|---|---|
| allowedSourceAddressPrefix |
string |
"allowedSourceAddressPrefixes" parametresiyle birbirini dışlar. "192.168.0.3" veya "192.168.0.0/16" gibi bir IP adresi veya CIDR olmalıdır. |
| allowedSourceAddressPrefixes |
string[] |
"allowedSourceAddressPrefix" parametresiyle birbirini dışlar. |
| endTimeUtc |
string (date-time) |
İsteğin UTC ile sona erdiği tarih & saat |
| mappedPort |
integer |
Varsa Azure Güvenlik Duvarı'nda bu bağlantı noktasının |
| number |
integer minimum: 0maximum: 65535 |
|
| status |
Bağlantı noktasının durumu |
|
| statusReason |
|
JitNetworkAccessRequestVirtualMachine
| Name | Tür | Description |
|---|---|---|
| id |
string |
Bu ilkeye bağlı sanal makinenin kaynak kimliği |
| ports |
Sanal makine için açılan bağlantı noktaları |
protocol
| Değer | Description |
|---|---|
| TCP | |
| UDP | |
| * |
status
Bağlantı noktasının durumu
| Değer | Description |
|---|---|
| Revoked | |
| Initiated |
statusReason
status değerinin neden olduğunu açıklayan açıklama
| Değer | Description |
|---|---|
| Expired | |
| UserRequested | |
| NewerRequestInitiated |