Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loggers, diagnostics, certificates and backends to workspace #27262

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
54ffc30
Add loggers to workspaces
Mielek Jan 5, 2024
614f6fb
Add diagnostics to workspace
Mielek Jan 5, 2024
32fc612
Add certificates to workspace
Mielek Jan 5, 2024
6e05a59
Add backends to workspaces
Mielek Jan 5, 2024
0639024
Change DiagnosticContract to DiagnosticContractProperties in patch
Mielek Jan 9, 2024
b767af9
Revert back DiagnosticContractProperties to DiagnosticContract
Mielek Jan 12, 2024
430c957
Fix CI and add files to readme
Mielek Jan 24, 2024
66090f3
Fix example
Mielek Jan 24, 2024
b648334
remove reconnect endpoint
Mielek Jan 30, 2024
97fda66
Add suppressions
Mielek Jan 30, 2024
bb23346
Try different suppression where
Mielek Jan 31, 2024
3618545
Try different suppression
Mielek Jan 31, 2024
40e6fca
Try other suppression
Mielek Feb 12, 2024
2fa31e4
another test
Mielek Feb 12, 2024
c1da7e0
finally working suppression
Mielek Feb 12, 2024
44f945f
remove unwanted line
Mielek Feb 12, 2024
5564779
Revert "remove reconnect endpoint"
Mielek Mar 15, 2024
c26f980
Remove reconnect endpoint
Mielek Mar 15, 2024
ba5b2cb
fix
Mielek Mar 15, 2024
4319100
Lint fix
Mielek Mar 15, 2024
56b8042
Revert "Lint fix"
Mielek Mar 15, 2024
94722ec
Suppress
Mielek Mar 20, 2024
0234c93
Suppression update
Mielek Mar 20, 2024
9d17f90
Add diagnostic update contract
Mielek Mar 20, 2024
3d3497c
update suppression
Mielek Mar 20, 2024
4a8917c
suppression update
Mielek Mar 20, 2024
d42ffc4
supp
Mielek Mar 20, 2024
efd077c
supp2
Mielek Mar 20, 2024
52851d5
supp3
Mielek Mar 20, 2024
97267b3
Fix breaking change
Mielek Mar 20, 2024
fe03958
revert
Mielek Mar 21, 2024
7b762c6
update
Mielek Mar 21, 2024
283abfb
Merge branch 'release-ApiManagement-2023-09-01-preview' into rm/2023-…
Mielek Mar 21, 2024
48378b2
I hope last fix
Mielek Mar 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,397 @@
{
"swagger": "2.0",
"info": {
"title": "ApiManagementClient",
"description": "Use these REST APIs for performing operations on Backend entity in Azure API Management deployment. The Backend entity in API Management represents a backend service that is configured to skip certification chain validation when using a self-signed certificate to test mutual certificate authentication.",
"version": "2023-09-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends": {
Mielek marked this conversation as resolved.
Show resolved Hide resolved
"get": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_ListByWorkspace",
"description": "Lists a collection of backends in the specified workspace.",
"x-ms-examples": {
"ApiManagementListWorkspaceBackends": {
"$ref": "./examples/ApiManagementListWorkspaceBackends.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"name": "$filter",
"in": "query",
"required": false,
"type": "string",
"description": "| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>"
},
{
"$ref": "./apimanagement.json#/parameters/TopQueryParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SkipQueryParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Lists a collection of Backend entities.",
"schema": {
"$ref": "./definitions.json#/definitions/BackendCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "./definitions.json#/definitions/BackendContract"
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}": {
"head": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_GetEntityTag",
"description": "Gets the entity state (Etag) version of the backend specified by its identifier.",
"x-ms-examples": {
"ApiManagementHeadWorkspaceBackend": {
"$ref": "./examples/ApiManagementHeadWorkspaceBackend.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/BackendIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Specified backend entity exists and current entity state version is present in the ETag header.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_Get",
"description": "Gets the details of the backend specified by its identifier.",
"x-ms-examples": {
"ApiManagementGetWorkspaceBackend": {
"$ref": "./examples/ApiManagementGetWorkspaceBackend.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/BackendIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The response body contains the specified Backend entity.",
"schema": {
"$ref": "./definitions.json#/definitions/BackendContract"
},
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"put": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_CreateOrUpdate",
"description": "Creates or Updates a backend.",
"x-ms-examples": {
"ApiManagementCreateWorkspaceBackendServiceFabric": {
"$ref": "./examples/ApiManagementCreateWorkspaceBackendServiceFabric.json"
},
"ApiManagementCreateWorkspaceBackendProxyBackend": {
"$ref": "./examples/ApiManagementCreateWorkspaceBackendProxyBackend.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/BackendIdParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./definitions.json#/definitions/BackendContract"
},
"description": "Create parameters."
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"201": {
"description": "Backend was successfully created.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
},
"schema": {
"$ref": "./definitions.json#/definitions/BackendContract"
}
},
"200": {
"description": "The existing backend was successfully updated.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
},
"schema": {
"$ref": "./definitions.json#/definitions/BackendContract"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"patch": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_Update",
"description": "Updates an existing backend.",
"x-ms-examples": {
"ApiManagementUpdateWorkspaceBackend": {
"$ref": "./examples/ApiManagementUpdateWorkspaceBackend.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/BackendIdParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./definitions.json#/definitions/BackendUpdateParameters"
},
"description": "Update parameters."
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The existing backend was successfully updated.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
},
"schema": {
"$ref": "./definitions.json#/definitions/BackendContract"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"delete": {
"tags": [
"Backend"
],
"operationId": "WorkspaceBackend_Delete",
"description": "Deletes the specified backend.",
"x-ms-examples": {
"ApiManagementDeleteWorkspaceBackend": {
"$ref": "./examples/ApiManagementDeleteWorkspaceBackend.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/WorkspaceIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/BackendIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The backend was successfully deleted."
},
"204": {
"description": "The backend was successfully deleted."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {},
"parameters": {}
}
Loading