Api Release - Create Or Update
API için yeni bir Yayın oluşturur.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}?api-version=2022-08-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
api
|
path | True |
string |
API tanımlayıcısı. Geçerli API Management hizmet örneğinde benzersiz olmalıdır. |
release
|
path | True |
string |
API içindeki yayın tanımlayıcısı. Geçerli API Management hizmet örneğinde benzersiz olmalıdır. Regex pattern: |
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
service
|
path | True |
string |
API Management hizmetinin adı. Regex pattern: |
subscription
|
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 Başlığı
Name | Gerekli | Tür | Description |
---|---|---|---|
If-Match |
string |
Varlığın ETag'i. Varlık oluştururken gerekli değildir, ancak varlığı güncelleştirirken gereklidir. |
İstek Gövdesi
Name | Tür | Description |
---|---|---|
properties.apiId |
string |
Yayının ait olduğu API'nin tanımlayıcısı. |
properties.notes |
string |
Sürüm Notları |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Sürüm başarıyla güncelleştirildi. Headers ETag: string |
|
201 Created |
Sürüm başarıyla oluşturuldu. Headers ETag: string |
|
Other Status Codes |
İş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
ApiManagementCreateApiRelease
Sample Request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1/releases/testrev?api-version=2022-08-01
{
"properties": {
"apiId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1",
"notes": "yahooagain"
}
}
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1/releases/testrev",
"type": "Microsoft.ApiManagement/service/apis/releases",
"name": "testrev",
"properties": {
"apiId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1",
"createdDateTime": "2018-02-08T20:52:00.65Z",
"updatedDateTime": "2018-02-08T20:52:00.65Z",
"notes": "yahooagain"
}
}
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1/releases/testrev",
"type": "Microsoft.ApiManagement/service/apis/releases",
"name": "testrev",
"properties": {
"apiId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1",
"createdDateTime": "2018-02-08T20:52:00.65Z",
"updatedDateTime": "2018-02-08T20:52:00.65Z",
"notes": "yahooagain"
}
}
Tanımlar
Name | Description |
---|---|
Api |
ApiRelease ayrıntıları. |
Error |
Hata Alanı sözleşmesi. |
Error |
Hata Yanıtı. |
ApiReleaseContract
ApiRelease ayrıntıları.
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.apiId |
string |
Yayının ait olduğu API'nin tanımlayıcısı. |
properties.createdDateTime |
string |
API'nin yayınlandığı zaman. Tarih şu biçime uygundur: ISO 8601 standardı tarafından belirtilen yyyy-MM-ddTHH:mm:ssZ. |
properties.notes |
string |
Sürüm Notları |
properties.updatedDateTime |
string |
API sürümünün güncelleştirilişi. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
ErrorFieldContract
Hata Alanı sözleşmesi.
Name | Tür | Description |
---|---|---|
code |
string |
Özellik düzeyi hata kodu. |
message |
string |
Özellik düzeyi hatanın insan tarafından okunabilir gösterimi. |
target |
string |
Özellik adı. |
ErrorResponse
Hata Yanıtı.
Name | Tür | Description |
---|---|---|
error.code |
string |
Hizmet tanımlı hata kodu. Bu kod, yanıtta belirtilen HTTP hata kodu için bir alt durum görevi görür. |
error.details |
Doğrulama hatası durumunda istekte gönderilen geçersiz alanların listesi. |
|
error.message |
string |
Hatanın insan tarafından okunabilen gösterimi. |