Mobile Networks - Create Or Update
创建或更新移动网络。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}?api-version=2024-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
mobile
|
path | True |
string maxLength: 64pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$ |
移动网络的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
location | True |
string |
资源所在的地理位置 |
properties.publicLandMobileNetworkIdentifier | True |
网络的唯一公共土地移动网络标识符。 如果同时指定了“publicLandMobileNetworks”和“publicLandMobileNetworkIdentifier”,则“publicLandMobileNetworks”将优先。 |
|
identity |
用于从 Azure 密钥保管库中检索用于 SUPI 隐藏的任何私钥的标识。 |
||
properties.publicLandMobileNetworks |
公共陆地移动网络的列表,包括其标识符。 如果同时指定了“publicLandMobileNetworks”和“publicLandMobileNetworkIdentifier”,则“publicLandMobileNetworks”将优先。 |
||
tags |
object |
资源标记。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
更新成功。 该作返回生成的移动网络资源。 |
|
201 Created |
创建成功。 该作返回生成的移动网络资源。 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Create mobile network
示例请求
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork?api-version=2024-04-01
{
"location": "eastus",
"properties": {
"publicLandMobileNetworkIdentifier": {
"mcc": "001",
"mnc": "01"
},
"publicLandMobileNetworks": [
{
"homeNetworkPublicKeys": {
"profileA": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk"
},
{
"id": 2,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2"
}
],
"profileB": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB"
}
]
},
"mcc": "001",
"mnc": "01"
}
]
}
}
示例响应
{
"name": "testMobileNetwork",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork",
"type": "Microsoft.MobileNetwork/mobileNetworks",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"location": "eastus",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"publicLandMobileNetworkIdentifier": {
"mcc": "001",
"mnc": "01"
},
"publicLandMobileNetworks": [
{
"homeNetworkPublicKeys": {
"profileA": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk"
},
{
"id": 2,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2"
}
],
"profileB": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB"
}
]
},
"mcc": "001",
"mnc": "01"
}
]
}
}
Azure-AsyncOperation: https://management.azure.com/providers/Microsoft.MobileNetwork/locations/testLocation/operationStatuses/testOperation?api-version=2024-04-01
{
"name": "testMobileNetwork",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork",
"type": "Microsoft.MobileNetwork/mobileNetworks",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"location": "eastus",
"tags": {},
"properties": {
"provisioningState": "Created",
"publicLandMobileNetworkIdentifier": {
"mcc": "001",
"mnc": "01"
},
"publicLandMobileNetworks": [
{
"homeNetworkPublicKeys": {
"profileA": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk"
},
{
"id": 2,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpk2/5e4876e9140e4e16bfe6e2cf92e0cbd2"
}
],
"profileB": [
{
"id": 1,
"url": "https://contosovault.vault.azure.net/secrets/exampleHnpkProfileB"
}
]
},
"mcc": "001",
"mnc": "01"
}
]
}
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
home |
用于 SUPI 隐藏的密钥。 |
Home |
与 SUPI 隐藏相关的配置。 |
Managed |
托管服务标识 (用户分配的标识) |
Managed |
托管服务标识的类型(目前只允许 UserAssigned)。 |
Mobile |
移动网络资源。 |
Plmn |
公共土地移动网络(PLMN)ID。 这由移动国家/地区代码和移动网络代码组成,如 https://www.itu.int/rec/T-REC-E.212中定义。 值 001-01 和 001-001 可用于测试,值 999-99 和 999-999 可用于内部专用网络。 |
Provisioning |
当前预配状态。 |
public |
与特定 PLMN 相关的配置 |
system |
与创建和上次修改资源相关的元数据。 |
User |
用户分配的标识属性 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
homeNetworkPublicKey
用于 SUPI 隐藏的密钥。
名称 | 类型 | 说明 |
---|---|---|
id |
integer (int32) minimum: 1maximum: 255 |
家庭网络公钥标识符确定用于生成发送到 AMF 的 SUCI 的公钥。 请参阅 TS 23.003 第 2.2B 部分 5。 |
url |
string |
包含私钥的 Azure Key Vault 机密的 URL、版本控制或未反转。 例如: |
HomeNetworkPublicKeys
与 SUPI 隐藏相关的配置。
名称 | 类型 | 说明 |
---|---|---|
profileA |
这提供了一个映射,用于识别哪些公钥已用于使用配置文件 A 保护方案进行 SUPI 隐藏。 |
|
profileB |
这提供了一个映射,用于识别哪些公钥已用于使用配置文件 B 保护方案进行 SUPI 隐藏。 |
ManagedServiceIdentity
托管服务标识 (用户分配的标识)
名称 | 类型 | 说明 |
---|---|---|
type |
托管服务标识的类型(目前只允许 UserAssigned)。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 标识 |
ManagedServiceIdentityType
托管服务标识的类型(目前只允许 UserAssigned)。
值 | 说明 |
---|---|
None | |
UserAssigned |
MobileNetwork
移动网络资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
identity |
用于从 Azure 密钥保管库中检索用于 SUPI 隐藏的任何私钥的标识。 |
|
location |
string |
资源所在的地理位置 |
name |
string |
资源的名称 |
properties.provisioningState |
移动网络资源的预配状态。 |
|
properties.publicLandMobileNetworkIdentifier |
网络的唯一公共土地移动网络标识符。 如果同时指定了“publicLandMobileNetworks”和“publicLandMobileNetworkIdentifier”,则“publicLandMobileNetworks”将优先。 |
|
properties.publicLandMobileNetworks |
公共陆地移动网络的列表,包括其标识符。 如果同时指定了“publicLandMobileNetworks”和“publicLandMobileNetworkIdentifier”,则“publicLandMobileNetworks”将优先。 |
|
properties.serviceKey |
string |
移动网络资源标识符 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
tags |
object |
资源标记。 |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
PlmnId
公共土地移动网络(PLMN)ID。 这由移动国家/地区代码和移动网络代码组成,如 https://www.itu.int/rec/T-REC-E.212中定义。 值 001-01 和 001-001 可用于测试,值 999-99 和 999-999 可用于内部专用网络。
名称 | 类型 | 说明 |
---|---|---|
mcc |
string pattern: ^\d{3}$ |
移动国家/地区代码(MCC)。 |
mnc |
string pattern: ^\d{2,3}$ |
移动网络代码(MNC)。 |
ProvisioningState
当前预配状态。
值 | 说明 |
---|---|
Accepted | |
Canceled | |
Deleted | |
Deleting | |
Failed | |
Succeeded | |
Unknown |
publicLandMobileNetwork
与特定 PLMN 相关的配置
名称 | 类型 | 说明 |
---|---|---|
homeNetworkPublicKeys |
与 SUPI 隐藏相关的配置。 |
|
mcc |
string pattern: ^\d{3}$ |
移动国家/地区代码(MCC)。 |
mnc |
string pattern: ^\d{2,3}$ |
移动网络代码(MNC)。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
UserAssignedIdentity
用户分配的标识属性
名称 | 类型 | 说明 |
---|---|---|
clientId |
string (uuid) |
分配的标识的客户端 ID。 |
principalId |
string (uuid) |
已分配标识的主体 ID。 |