Sites - Create Or Update
Létrehoz vagy frissít egy hálózati helyet.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/sites/{siteName}?api-version=2023-09-01
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
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. |
site
|
path | True |
string maxLength: 64pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$ |
A hálózati szolgáltatás helyének neve. |
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ó. |
Kérelem törzse
Name | Kötelező | Típus | Description |
---|---|---|---|
location | True |
string |
Az a földrajzi hely, ahol az erőforrás él |
properties |
Webhely tulajdonságai. |
||
tags |
object |
Erőforráscímkék. |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
A létrehozási vagy frissítési művelet sikeresen befejeződött. A művelet az eredményül kapott hálózatihely-erőforrást adja vissza. |
|
201 Created |
A létrehozási vagy frissítési művelet sikeresen befejeződött. A művelet az eredményül kapott hálózatihely-erőforrást adja vissza. |
|
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 Flow.
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
Create network site
Mintakérelem
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/sites/testSite?api-version=2023-09-01
{
"location": "westUs2",
"properties": {
"nfvis": [
{
"nfviType": "AzureCore",
"name": "azureWestUs2",
"location": "westUs2"
}
]
}
}
Mintaválasz
{
"name": "testSite",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/sites/testSite",
"type": "Microsoft.HybridNetwork/sites",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"location": "westUs2",
"properties": {
"provisioningState": "Accepted",
"nfvis": [
{
"nfviType": "AzureCore",
"name": "azureWestUs2",
"location": "westUs2"
}
]
}
}
{
"name": "testSite",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/sites/testSite",
"type": "Microsoft.HybridNetwork/sites",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"location": "westUs2",
"properties": {
"provisioningState": "Accepted",
"nfvis": [
{
"nfviType": "AzureCore",
"name": "azureWestUs2",
"location": "westUs2"
}
]
}
}
Definíciók
Name | Description |
---|---|
Azure |
Az AzureArcK8sCluster NFVI részletei. |
Azure |
Az Azure Core NFVI részletei. |
Azure |
Az AzureOperatorNexusCluster NFVI részletei. |
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 |
NFVIType |
Az NFVI típusa. |
Provisioning |
Az aktuális kiépítési állapot. |
Referenced |
Hivatkozás egy másik erőforrásra. |
Site |
Helyerőforrás. |
Site |
Webhely tulajdonságai. |
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
AzureArcK8sClusterNFVIDetails
Az AzureArcK8sCluster NFVI részletei.
Name | Típus | Description |
---|---|---|
customLocationReference |
Az egyéni helyre mutató hivatkozás. |
|
name |
string |
Az nfvi neve. |
nfviType |
string:
Azure |
Az NFVI típusa. |
AzureCoreNFVIDetails
Az Azure Core NFVI részletei.
Name | Típus | Description |
---|---|---|
location |
string |
Az Azure Core helye. |
name |
string |
Az nfvi neve. |
nfviType |
string:
Azure |
Az NFVI típusa. |
AzureOperatorNexusClusterNFVIDetails
Az AzureOperatorNexusCluster NFVI részletei.
Name | Típus | Description |
---|---|---|
customLocationReference |
Az egyéni helyre mutató hivatkozás. |
|
name |
string |
Az nfvi neve. |
nfviType |
string:
Azure |
Az NFVI típusa. |
createdByType
Az erőforrást létrehozó identitás típusa.
Érték | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
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. |
NFVIType
Az NFVI típusa.
Érték | Description |
---|---|
AzureArcKubernetes | |
AzureCore | |
AzureOperatorNexus | |
Unknown |
ProvisioningState
Az aktuális kiépítési állapot.
Érték | Description |
---|---|
Accepted | |
Canceled | |
Converging | |
Deleted | |
Deleting | |
Failed | |
Succeeded | |
Unknown |
ReferencedResource
Hivatkozás egy másik erőforrásra.
Name | Típus | Description |
---|---|---|
id |
string |
Erőforrás-azonosító. |
Site
Helyerőforrás.
Name | Típus | Description |
---|---|---|
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 |
Webhely tulajdonságai. |
|
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" |
SitePropertiesFormat
Webhely tulajdonságai.
Name | Típus | Description |
---|---|---|
nfvis | NFVIs[]: |
NFVA-k listája |
provisioningState |
A helyerőforrás kiépítési állapota. TODO: Ellenőrizze, hogy szükség van-e erre. |
|
siteNetworkServiceReferences |
A hely hálózati szolgáltatásainak listája a webhelyen. |
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. |