Firewall Rules - Create Or Update

Yeni bir güvenlik duvarı kuralı oluşturur veya mevcut bir güvenlik duvarı kuralını güncelleştirir.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}?api-version=2018-06-01

URI Parametreleri

Name İçinde Gerekli Tür Description
firewallRuleName
path True

string

Sunucu güvenlik duvarı kuralının adı.

resourceGroupName
path True

string

Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

serverName
path True

string

Sunucunun adı.

subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

İstek Gövdesi

Name Gerekli Tür Description
properties.endIpAddress True

string

Sunucu güvenlik duvarı kuralının bitiş IP adresi. IPv4 biçimi olmalıdır.

properties.startIpAddress True

string

Sunucu güvenlik duvarı kuralının başlangıç IP adresi. IPv4 biçimi olmalıdır.

Yanıtlar

Name Tür Description
200 OK

FirewallRule

Tamam

201 Created

FirewallRule

Oluşturulan

202 Accepted

Kabul edildi

Other Status Codes

CloudError

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

FirewallRuleCreate

Sample Request

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver/firewallRules/rule1?api-version=2018-06-01

{
  "properties": {
    "startIpAddress": "0.0.0.0",
    "endIpAddress": "255.255.255.255"
  }
}

Sample Response

{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver/firewallRules/rule1",
  "name": "rule1",
  "type": "Microsoft.DBforMariaDB/servers/firewallRules",
  "properties": {
    "startIpAddress": "0.0.0.0",
    "endIpAddress": "255.255.255.255"
  }
}
{
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMariaDB/servers/testserver/firewallRules/rule1",
  "name": "rule1",
  "type": "Microsoft.DBforMariaDB/servers/firewallRules",
  "properties": {
    "startIpAddress": "0.0.0.0",
    "endIpAddress": "255.255.255.255"
  }
}

Tanımlar

Name Description
CloudError

Batch hizmetinden bir hata yanıtı.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorResponse

Hata Yanıtı

FirewallRule

Sunucu güvenlik duvarı kuralını temsil eder.

CloudError

Batch hizmetinden bir hata yanıtı.

Name Tür Description
error

ErrorResponse

Hata Yanıtı
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.)

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorResponse

Hata Yanıtı

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorResponse[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

FirewallRule

Sunucu güvenlik duvarı kuralını temsil eder.

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Kaynağın adı

properties.endIpAddress

string

Sunucu güvenlik duvarı kuralının bitiş IP adresi. IPv4 biçimi olmalıdır.

properties.startIpAddress

string

Sunucu güvenlik duvarı kuralının başlangıç IP adresi. IPv4 biçimi olmalıdır.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"