Skip to content

Commit

Permalink
Add loggers, diagnostics, certificates and backends to workspace (Azu…
Browse files Browse the repository at this point in the history
…re#27262)

* Add loggers to workspaces

* Add diagnostics to workspace

* Add certificates to workspace

* Add backends to workspaces

* Change DiagnosticContract to DiagnosticContractProperties in patch

* Revert back DiagnosticContractProperties to DiagnosticContract

* Fix CI and add files to readme

* Fix example

* remove reconnect endpoint

* Add suppressions

* Try different suppression where

* Try different suppression

* Try other suppression

* another test

* finally working suppression

* remove unwanted line
  • Loading branch information
Mielek authored and solankisamir committed May 9, 2024
1 parent 25788eb commit 4c80c55
Show file tree
Hide file tree
Showing 40 changed files with 3,944 additions and 1 deletion.
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": {
"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

0 comments on commit 4c80c55

Please sign in to comment.