Network Interfaces - Get
Hálózati adapter lekérdezve
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}?api-version=2024-01-01
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
network
|
path | True |
string minLength: 1maxLength: 80 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
A hálózati adapter neve |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket. |
|
subscription
|
path | True |
string minLength: 1 |
A cél-előfizetés azonosítója. |
|
api-version
|
query | True |
string minLength: 1 |
A művelethez használni kívánt API-verzió. |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
OKÉ |
|
| Other Status Codes |
Hibaválasz, amely leírja, hogy miért nem sikerült a művelet. |
Biztonság
azure_auth
Azure Active Directory OAuth2-folyamat
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
| Name | Description |
|---|---|
| user_impersonation | a felhasználói fiók megszemélyesítése |
Példák
GetNetworkInterface
Mintakérelem
GET https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic?api-version=2024-01-01
Mintaválasz
{
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic",
"name": "test-nic",
"type": "Microsoft.AzureStackHCI/networkInterfaces",
"location": "West US2",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"properties": {
"provisioningState": "Accepted",
"ipConfigurations": [
{
"name": "ipconfig-sample",
"properties": {
"subnet": {
"id": "external"
}
}
}
]
}
}
Definíciók
| Name | Description |
|---|---|
|
created |
Az erőforrást létrehozó identitás típusa. |
|
Error |
Az erőforrás-kezelési hiba további információi. |
|
Error |
A hiba részletei. |
|
Error |
Hibaválasz |
|
Extended |
A kiterjesztett hely összetett típusa. |
|
Extended |
A kiterjesztett hely típusa. |
|
Interface |
|
| IPConfiguration |
InterfaceIPConfiguration iPConfiguration egy hálózati adapteren. |
|
Network |
A hálózati adapter erőforrásdefiníciója. |
| Properties |
Az IP-konfiguráció InterfaceIPConfigurationPropertiesFormat tulajdonságai. |
|
Provisioning |
A hálózati adapter kiépítési állapota. |
|
Provisioning |
|
| Status |
A hálózati adapteren végrehajtott művelet állapota [Sikeres, Sikertelen, Bejövő forgalom] |
| Subnet |
Alhálózat – Az IP-konfigurációhoz kötött alhálózat neve. |
|
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
createdByType
Az erőforrást létrehozó identitás típusa.
| Érték | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
| Name | Típus | Description |
|---|---|---|
| info |
object |
A további információk. |
| type |
string |
A további információtípus. |
ErrorDetail
A hiba részletei.
| Name | Típus | Description |
|---|---|---|
| additionalInfo |
A hiba további információi. |
|
| code |
string |
A hibakód. |
| details |
A hiba részletei. |
|
| message |
string |
A hibaüzenet. |
| target |
string |
A hibacél. |
ErrorResponse
Hibaválasz
| Name | Típus | Description |
|---|---|---|
| error |
A hibaobjektum. |
ExtendedLocation
A kiterjesztett hely összetett típusa.
| Name | Típus | Description |
|---|---|---|
| name |
string |
A kiterjesztett hely neve. |
| type |
A kiterjesztett hely típusa. |
ExtendedLocationTypes
A kiterjesztett hely típusa.
| Érték | Description |
|---|---|
| CustomLocation |
InterfaceDNSSettings
| Name | Típus | Description |
|---|---|---|
| dnsServers |
string[] |
A dns-kiszolgáló IP-címeinek listája az interfészhez |
IPConfiguration
InterfaceIPConfiguration iPConfiguration egy hálózati adapteren.
| Name | Típus | Description |
|---|---|---|
| name |
string pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
Név – Az erőforráscsoporton belül egyedi erőforrás neve. Ez a név használható az erőforrás eléréséhez. |
| properties |
Az IP-konfiguráció InterfaceIPConfigurationPropertiesFormat tulajdonságai. |
NetworkInterfaces
A hálózati adapter erőforrásdefiníciója.
| Name | Típus | Description |
|---|---|---|
| extendedLocation |
Az erőforrás kiterjesztett áthelyezése. |
|
| id |
string |
Az erőforrás teljes erőforrás-azonosítója. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
Az a földrajzi hely, ahol az erőforrás él |
| name |
string |
Az erőforrás neve |
| properties.dnsSettings |
A felület DNS-beállításai |
|
| properties.ipConfigurations |
IPConfigurations – A hálózati adapter IPConfigurations listája. |
|
| properties.macAddress |
string |
MacAddress – A hálózati adapter MAC-címe. |
| properties.provisioningState |
A hálózati adapter kiépítési állapota. |
|
| properties.status.errorCode |
string |
NetworkInterface kiépítési hibakód |
| properties.status.errorMessage |
string |
Leíró hibaüzenet |
| properties.status.provisioningStatus | ||
| systemData |
A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok. |
|
| tags |
object |
Erőforráscímkék. |
| type |
string |
Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts" |
Properties
Az IP-konfiguráció InterfaceIPConfigurationPropertiesFormat tulajdonságai.
| Name | Típus | Description |
|---|---|---|
| gateway |
string |
Átjáró a hálózati adapterhez |
| prefixLength |
string |
előtagLength a hálózati adapterhez |
| privateIPAddress |
string |
PrivateIPAddress – Az IP-konfiguráció privát IP-címe. |
| subnet |
Alhálózat – Az IP-konfigurációhoz kötött alhálózat neve. |
ProvisioningStateEnum
A hálózati adapter kiépítési állapota.
| Érték | Description |
|---|---|
| Succeeded | |
| Failed | |
| InProgress | |
| Accepted | |
| Deleting | |
| Canceled |
ProvisioningStatus
| Name | Típus | Description |
|---|---|---|
| operationId |
string |
A hálózati adapteren végrehajtott művelet azonosítója |
| status |
A hálózati adapteren végrehajtott művelet állapota [Sikeres, Sikertelen, Bejövő forgalom] |
Status
A hálózati adapteren végrehajtott művelet állapota [Sikeres, Sikertelen, Bejövő forgalom]
| Érték | Description |
|---|---|
| Succeeded | |
| Failed | |
| InProgress |
Subnet
Alhálózat – Az IP-konfigurációhoz kötött alhálózat neve.
| Name | Típus | Description |
|---|---|---|
| id |
string |
AZONOSÍTÓ – Az ARM-erőforrás azonosítója /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... |
systemData
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.
| Name | Típus | Description |
|---|---|---|
| createdAt |
string (date-time) |
Az erőforrás-létrehozás időbélyege (UTC). |
| createdBy |
string |
Az erőforrást létrehozó identitás. |
| createdByType |
Az erőforrást létrehozó identitás típusa. |
|
| lastModifiedAt |
string (date-time) |
Az erőforrás utolsó módosításának időbélyege (UTC) |
| lastModifiedBy |
string |
Az erőforrást legutóbb módosító identitás. |
| lastModifiedByType |
Az erőforrást legutóbb módosító identitás típusa. |