Megosztás a következőn keresztül:


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
resourceGroupName
path True

string

minLength: 1
maxLength: 90

Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket.

siteName
path True

string

maxLength: 64
pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

A hálózati szolgáltatás helyének neve.

subscriptionId
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

SitePropertiesFormat

Webhely tulajdonságai.

tags

object

Erőforráscímkék.

Válaszok

Name Típus Description
200 OK

Site

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

Site

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

ErrorResponse

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
AzureArcK8sClusterNFVIDetails

Az AzureArcK8sCluster NFVI részletei.

AzureCoreNFVIDetails

Az Azure Core NFVI részletei.

AzureOperatorNexusClusterNFVIDetails

Az AzureOperatorNexusCluster NFVI részletei.

createdByType

Az erőforrást létrehozó identitás típusa.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

NFVIType

Az NFVI típusa.

ProvisioningState

Az aktuális kiépítési állapot.

ReferencedResource

Hivatkozás egy másik erőforrásra.

Site

Helyerőforrás.

SitePropertiesFormat

Webhely tulajdonságai.

systemData

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

ReferencedResource

Az egyéni helyre mutató hivatkozás.

name

string

Az nfvi neve.

nfviType string:

AzureArcKubernetes

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:

AzureCore

Az NFVI típusa.

AzureOperatorNexusClusterNFVIDetails

Az AzureOperatorNexusCluster NFVI részletei.

Name Típus Description
customLocationReference

ReferencedResource

Az egyéni helyre mutató hivatkozás.

name

string

Az nfvi neve.

nfviType string:

AzureOperatorNexus

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

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hibacél.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

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

SitePropertiesFormat

Webhely tulajdonságai.

systemData

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

ProvisioningState

A helyerőforrás kiépítési állapota. TODO: Ellenőrizze, hogy szükség van-e erre.

siteNetworkServiceReferences

ReferencedResource[]

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

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

createdByType

Az erőforrást legutóbb módosító identitás típusa.