Workspace Api Release - Create Or Update
Hiermee maakt u een nieuwe release voor de API.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}?api-version=2024-05-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
api
|
path | True |
string minLength: 1maxLength: 80 |
API-id. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. |
release
|
path | True |
string minLength: 1maxLength: 80 pattern: ^[^*#&+:<>?]+$ |
Release-id binnen een API. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
De naam van de API Management-service. |
subscription
|
path | True |
string (uuid) |
De id van het doelabonnement. De waarde moet een UUID zijn. |
workspace
|
path | True |
string minLength: 1maxLength: 80 pattern: ^[^*#&+:<>?]+$ |
Werkruimte-id. Moet uniek zijn in het huidige EXEMPLAAR van de API Management-service. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
If-Match |
string |
ETag van de entiteit. Niet vereist bij het maken van een entiteit, maar vereist bij het bijwerken van een entiteit. |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties.apiId |
string |
De id van de API waartoe de release behoort. |
properties.notes |
string |
Opmerkingen bij de release |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De release is bijgewerkt. Kopteksten ETag: string |
|
201 Created |
Release is gemaakt. Kopteksten ETag: string |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
ApiManagementCreateWorkspaceApiRelease
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1/releases/testrev?api-version=2024-05-01
{
"properties": {
"apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1",
"notes": "yahooagain"
}
}
Voorbeeldrespons
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1/releases/testrev",
"type": "Microsoft.ApiManagement/service/workspaces/apis/releases",
"name": "testrev",
"properties": {
"apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1",
"createdDateTime": "2018-02-08T20:52:00.65Z",
"updatedDateTime": "2018-02-08T20:52:00.65Z",
"notes": "yahooagain"
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1/releases/testrev",
"type": "Microsoft.ApiManagement/service/workspaces/apis/releases",
"name": "testrev",
"properties": {
"apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/apis/a1",
"createdDateTime": "2018-02-08T20:52:00.65Z",
"updatedDateTime": "2018-02-08T20:52:00.65Z",
"notes": "yahooagain"
}
}
Definities
Name | Description |
---|---|
Api |
Details van ApiRelease. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
ApiReleaseContract
Details van ApiRelease.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.apiId |
string |
De id van de API waartoe de release behoort. |
properties.createdDateTime |
string (date-time) |
De tijd dat de API is uitgebracht. De datum voldoet aan de volgende notatie: jjjj-MM-ddTHH:mm:ssZ zoals opgegeven door de ISO 8601-standaard. |
properties.notes |
string |
Opmerkingen bij de release |
properties.updatedDateTime |
string (date-time) |
Het tijdstip waarop de API-release is bijgewerkt. |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |