From 3ce4f8049675bea3bc0dd9c41595c80563f1dd43 Mon Sep 17 00:00:00 2001 From: Erlendrushf <89841014+Erlendrushf@users.noreply.github.com> Date: Thu, 25 Sep 2025 07:54:49 +0000 Subject: [PATCH] updated extract from apim instance apimartifacts --- .../apis/echo-api/apiInformation.json | 18 ++++ .../operations/create-resource/policy.xml | 12 +++ .../retrieve-header-only/policy.xml | 16 +++ .../retrieve-resource-cached/policy.xml | 17 +++ .../apis/echo-api/specification.yaml | 102 ++++++++++++++++++ .../apiops-demo/backendInformation.json | 16 +++ .../azuremonitor/diagnosticInformation.json | 34 ++++++ .../administrators/groupInformation.json | 7 ++ .../groups/developers/groupInformation.json | 7 ++ .../groups/guests/groupInformation.json | 7 ++ .../azuremonitor/loggerInformation.json | 6 ++ .../ErlendIP/namedValueInformation.json | 8 ++ apimartifacts/policy.xml | 17 +++ .../apis/echo-api/productApiInformation.json | 1 + .../productGroupInformation.json | 1 + .../developers/productGroupInformation.json | 1 + .../guests/productGroupInformation.json | 1 + apimartifacts/products/starter/policy.xml | 29 +++++ .../products/starter/productInformation.json | 11 ++ .../apis/echo-api/productApiInformation.json | 1 + .../productGroupInformation.json | 1 + .../developers/productGroupInformation.json | 1 + .../guests/productGroupInformation.json | 1 + .../unlimited/productInformation.json | 10 ++ .../subscriptionInformation.json | 8 ++ .../subscriptionInformation.json | 8 ++ 26 files changed, 341 insertions(+) create mode 100644 apimartifacts/apis/echo-api/apiInformation.json create mode 100644 apimartifacts/apis/echo-api/operations/create-resource/policy.xml create mode 100644 apimartifacts/apis/echo-api/operations/retrieve-header-only/policy.xml create mode 100644 apimartifacts/apis/echo-api/operations/retrieve-resource-cached/policy.xml create mode 100644 apimartifacts/apis/echo-api/specification.yaml create mode 100644 apimartifacts/backends/apiops-demo/backendInformation.json create mode 100644 apimartifacts/diagnostics/azuremonitor/diagnosticInformation.json create mode 100644 apimartifacts/groups/administrators/groupInformation.json create mode 100644 apimartifacts/groups/developers/groupInformation.json create mode 100644 apimartifacts/groups/guests/groupInformation.json create mode 100644 apimartifacts/loggers/azuremonitor/loggerInformation.json create mode 100644 apimartifacts/named values/ErlendIP/namedValueInformation.json create mode 100644 apimartifacts/policy.xml create mode 100644 apimartifacts/products/starter/apis/echo-api/productApiInformation.json create mode 100644 apimartifacts/products/starter/groups/administrators/productGroupInformation.json create mode 100644 apimartifacts/products/starter/groups/developers/productGroupInformation.json create mode 100644 apimartifacts/products/starter/groups/guests/productGroupInformation.json create mode 100644 apimartifacts/products/starter/policy.xml create mode 100644 apimartifacts/products/starter/productInformation.json create mode 100644 apimartifacts/products/unlimited/apis/echo-api/productApiInformation.json create mode 100644 apimartifacts/products/unlimited/groups/administrators/productGroupInformation.json create mode 100644 apimartifacts/products/unlimited/groups/developers/productGroupInformation.json create mode 100644 apimartifacts/products/unlimited/groups/guests/productGroupInformation.json create mode 100644 apimartifacts/products/unlimited/productInformation.json create mode 100644 apimartifacts/subscriptions/68d426764b0bb90049070001/subscriptionInformation.json create mode 100644 apimartifacts/subscriptions/68d426764b0bb90049070002/subscriptionInformation.json diff --git a/apimartifacts/apis/echo-api/apiInformation.json b/apimartifacts/apis/echo-api/apiInformation.json new file mode 100644 index 0000000..13d61f9 --- /dev/null +++ b/apimartifacts/apis/echo-api/apiInformation.json @@ -0,0 +1,18 @@ +{ + "properties": { + "path": "echo", + "apiRevision": "1", + "authenticationSettings": {}, + "isCurrent": true, + "displayName": "Echo API", + "protocols": [ + "https" + ], + "serviceUrl": "https://echo.playground.azure-api.net/api", + "subscriptionKeyParameterNames": { + "header": "Ocp-Apim-Subscription-Key", + "query": "subscription-key" + }, + "subscriptionRequired": true + } +} \ No newline at end of file diff --git a/apimartifacts/apis/echo-api/operations/create-resource/policy.xml b/apimartifacts/apis/echo-api/operations/create-resource/policy.xml new file mode 100644 index 0000000..23dabf8 --- /dev/null +++ b/apimartifacts/apis/echo-api/operations/create-resource/policy.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/apimartifacts/apis/echo-api/operations/retrieve-header-only/policy.xml b/apimartifacts/apis/echo-api/operations/retrieve-header-only/policy.xml new file mode 100644 index 0000000..ebfed2b --- /dev/null +++ b/apimartifacts/apis/echo-api/operations/retrieve-header-only/policy.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + This is a sample + + + + + \ No newline at end of file diff --git a/apimartifacts/apis/echo-api/operations/retrieve-resource-cached/policy.xml b/apimartifacts/apis/echo-api/operations/retrieve-resource-cached/policy.xml new file mode 100644 index 0000000..d510a0e --- /dev/null +++ b/apimartifacts/apis/echo-api/operations/retrieve-resource-cached/policy.xml @@ -0,0 +1,17 @@ + + + + + Accept + Accept-Charset + + + + + + + + + + + \ No newline at end of file diff --git a/apimartifacts/apis/echo-api/specification.yaml b/apimartifacts/apis/echo-api/specification.yaml new file mode 100644 index 0000000..30fa130 --- /dev/null +++ b/apimartifacts/apis/echo-api/specification.yaml @@ -0,0 +1,102 @@ +openapi: 3.0.1 +info: + title: Echo API + version: '1.0' +servers: + - url: https://p-weu-apim-old.azure-api.net/echo +paths: + /resource: + get: + summary: Retrieve resource + description: A demonstration of a GET call on a sample resource. It is handled by an "echo" backend which returns a response equal to the request (the supplied headers and body are being returned as received). + operationId: retrieve-resource + parameters: + - name: param1 + in: query + description: A sample parameter that is required and has a default value of "sample". + required: true + schema: + enum: + - sample + type: string + default: sample + - name: param2 + in: query + description: 'Another sample parameter, set to not required.' + schema: + type: number + responses: + '200': + description: Returned in all cases. + put: + summary: Modify Resource + description: A demonstration of a PUT call handled by the same "echo" backend as above. You can now specify a request body in addition to headers and it will be returned as well. + operationId: modify-resource + responses: + '200': + description: '' + post: + summary: Create resource + description: A demonstration of a POST call based on the echo backend above. The request body is expected to contain JSON-formatted data (see example below). A policy is used to automatically transform any request sent in JSON directly to XML. In a real-world scenario this could be used to enable modern clients to speak to a legacy backend. + operationId: create-resource + requestBody: + content: + application/json: + example: + vehicleType: train + maxSpeed: 125 + avgSpeed: 90 + speedUnit: mph + responses: + '200': + description: '' + delete: + summary: Remove resource + description: A demonstration of a DELETE call which traditionally deletes the resource. It is based on the same "echo" backend as in all other operations so nothing is actually deleted. + operationId: remove-resource + responses: + '200': + description: '' + head: + summary: Retrieve header only + description: The HEAD operation returns only headers. In this demonstration a policy is used to set additional headers when the response is returned and to enable JSONP. + operationId: retrieve-header-only + responses: + '200': + description: '' + /resource-cached: + get: + summary: Retrieve resource (cached) + description: A demonstration of a GET call with caching enabled on the same "echo" backend as above. Cache TTL is set to 1 hour. When you make the first request the headers you supplied will be cached. Subsequent calls will return the same headers as the first time even if you change them in your request. + operationId: retrieve-resource-cached + parameters: + - name: param1 + in: query + description: A sample parameter that is required and has a default value of "sample". + required: true + schema: + enum: + - sample + type: string + default: sample + - name: param2 + in: query + description: 'Another sample parameter, set to not required.' + schema: + type: string + responses: + '200': + description: '' +components: + securitySchemes: + apiKeyHeader: + type: apiKey + name: Ocp-Apim-Subscription-Key + in: header + apiKeyQuery: + type: apiKey + name: subscription-key + in: query +security: + - apiKeyHeader: [ ] + - apiKeyQuery: [ ] \ No newline at end of file diff --git a/apimartifacts/backends/apiops-demo/backendInformation.json b/apimartifacts/backends/apiops-demo/backendInformation.json new file mode 100644 index 0000000..a2d13b0 --- /dev/null +++ b/apimartifacts/backends/apiops-demo/backendInformation.json @@ -0,0 +1,16 @@ +{ + "properties": { + "credentials": { + "header": {}, + "query": {} + }, + "protocol": "http", + "resourceId": "https://management.azure.com/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-backend/providers/Microsoft.Web/sites/p-weu-apim-apiopsdemo", + "tls": { + "validateCertificateChain": true, + "validateCertificateName": true + }, + "type": "Single", + "url": "https://p-weu-apim-apiopsdemo.azurewebsites.net" + } +} \ No newline at end of file diff --git a/apimartifacts/diagnostics/azuremonitor/diagnosticInformation.json b/apimartifacts/diagnostics/azuremonitor/diagnosticInformation.json new file mode 100644 index 0000000..d2f8361 --- /dev/null +++ b/apimartifacts/diagnostics/azuremonitor/diagnosticInformation.json @@ -0,0 +1,34 @@ +{ + "properties": { + "loggerId": "/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-old/providers/Microsoft.ApiManagement/service/p-weu-apim-old/loggers/azuremonitor", + "backend": { + "request": { + "dataMasking": { + "queryParams": [ + { + "mode": "Hide", + "value": "*" + } + ] + } + } + }, + "frontend": { + "request": { + "dataMasking": { + "queryParams": [ + { + "mode": "Hide", + "value": "*" + } + ] + } + } + }, + "logClientIp": true, + "sampling": { + "percentage": 100, + "samplingType": "fixed" + } + } +} \ No newline at end of file diff --git a/apimartifacts/groups/administrators/groupInformation.json b/apimartifacts/groups/administrators/groupInformation.json new file mode 100644 index 0000000..62517ce --- /dev/null +++ b/apimartifacts/groups/administrators/groupInformation.json @@ -0,0 +1,7 @@ +{ + "properties": { + "displayName": "Administrators", + "description": "Administrators is a built-in group containing the admin email account provided at the time of service creation. Its membership is managed by the system.", + "type": "system" + } +} \ No newline at end of file diff --git a/apimartifacts/groups/developers/groupInformation.json b/apimartifacts/groups/developers/groupInformation.json new file mode 100644 index 0000000..8d419fc --- /dev/null +++ b/apimartifacts/groups/developers/groupInformation.json @@ -0,0 +1,7 @@ +{ + "properties": { + "displayName": "Developers", + "description": "Developers is a built-in group. Its membership is managed by the system. Signed-in users fall into this group.", + "type": "system" + } +} \ No newline at end of file diff --git a/apimartifacts/groups/guests/groupInformation.json b/apimartifacts/groups/guests/groupInformation.json new file mode 100644 index 0000000..ec538c5 --- /dev/null +++ b/apimartifacts/groups/guests/groupInformation.json @@ -0,0 +1,7 @@ +{ + "properties": { + "displayName": "Guests", + "description": "Guests is a built-in group. Its membership is managed by the system. Unauthenticated users visiting the developer portal fall into this group.", + "type": "system" + } +} \ No newline at end of file diff --git a/apimartifacts/loggers/azuremonitor/loggerInformation.json b/apimartifacts/loggers/azuremonitor/loggerInformation.json new file mode 100644 index 0000000..f1ebbe2 --- /dev/null +++ b/apimartifacts/loggers/azuremonitor/loggerInformation.json @@ -0,0 +1,6 @@ +{ + "properties": { + "loggerType": "azureMonitor", + "isBuffered": true + } +} \ No newline at end of file diff --git a/apimartifacts/named values/ErlendIP/namedValueInformation.json b/apimartifacts/named values/ErlendIP/namedValueInformation.json new file mode 100644 index 0000000..94e0772 --- /dev/null +++ b/apimartifacts/named values/ErlendIP/namedValueInformation.json @@ -0,0 +1,8 @@ +{ + "properties": { + "displayName": "erlenndIP", + "secret": false, + "tags": [], + "value": "91.184.138.88" + } +} \ No newline at end of file diff --git a/apimartifacts/policy.xml b/apimartifacts/policy.xml new file mode 100644 index 0000000..e0ea936 --- /dev/null +++ b/apimartifacts/policy.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/apimartifacts/products/starter/apis/echo-api/productApiInformation.json b/apimartifacts/products/starter/apis/echo-api/productApiInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/starter/apis/echo-api/productApiInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/starter/groups/administrators/productGroupInformation.json b/apimartifacts/products/starter/groups/administrators/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/starter/groups/administrators/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/starter/groups/developers/productGroupInformation.json b/apimartifacts/products/starter/groups/developers/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/starter/groups/developers/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/starter/groups/guests/productGroupInformation.json b/apimartifacts/products/starter/groups/guests/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/starter/groups/guests/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/starter/policy.xml b/apimartifacts/products/starter/policy.xml new file mode 100644 index 0000000..ea73b4d --- /dev/null +++ b/apimartifacts/products/starter/policy.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apimartifacts/products/starter/productInformation.json b/apimartifacts/products/starter/productInformation.json new file mode 100644 index 0000000..4be6189 --- /dev/null +++ b/apimartifacts/products/starter/productInformation.json @@ -0,0 +1,11 @@ +{ + "properties": { + "displayName": "Starter", + "description": "Subscribers will be able to run 5 calls/minute up to a maximum of 100 calls/week.", + "approvalRequired": false, + "state": "published", + "subscriptionRequired": true, + "subscriptionsLimit": 1, + "terms": "" + } +} \ No newline at end of file diff --git a/apimartifacts/products/unlimited/apis/echo-api/productApiInformation.json b/apimartifacts/products/unlimited/apis/echo-api/productApiInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/unlimited/apis/echo-api/productApiInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/unlimited/groups/administrators/productGroupInformation.json b/apimartifacts/products/unlimited/groups/administrators/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/unlimited/groups/administrators/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/unlimited/groups/developers/productGroupInformation.json b/apimartifacts/products/unlimited/groups/developers/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/unlimited/groups/developers/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/unlimited/groups/guests/productGroupInformation.json b/apimartifacts/products/unlimited/groups/guests/productGroupInformation.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/apimartifacts/products/unlimited/groups/guests/productGroupInformation.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apimartifacts/products/unlimited/productInformation.json b/apimartifacts/products/unlimited/productInformation.json new file mode 100644 index 0000000..77d8364 --- /dev/null +++ b/apimartifacts/products/unlimited/productInformation.json @@ -0,0 +1,10 @@ +{ + "properties": { + "displayName": "Unlimited", + "description": "Subscribers have completely unlimited access to the API. Administrator approval is required.", + "approvalRequired": true, + "state": "published", + "subscriptionRequired": true, + "subscriptionsLimit": 1 + } +} \ No newline at end of file diff --git a/apimartifacts/subscriptions/68d426764b0bb90049070001/subscriptionInformation.json b/apimartifacts/subscriptions/68d426764b0bb90049070001/subscriptionInformation.json new file mode 100644 index 0000000..9408659 --- /dev/null +++ b/apimartifacts/subscriptions/68d426764b0bb90049070001/subscriptionInformation.json @@ -0,0 +1,8 @@ +{ + "properties": { + "scope": "/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-old/providers/Microsoft.ApiManagement/service/p-weu-apim-old/products/starter", + "allowTracing": false, + "ownerId": "/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-old/providers/Microsoft.ApiManagement/service/p-weu-apim-old/users/1", + "state": "active" + } +} \ No newline at end of file diff --git a/apimartifacts/subscriptions/68d426764b0bb90049070002/subscriptionInformation.json b/apimartifacts/subscriptions/68d426764b0bb90049070002/subscriptionInformation.json new file mode 100644 index 0000000..435d28b --- /dev/null +++ b/apimartifacts/subscriptions/68d426764b0bb90049070002/subscriptionInformation.json @@ -0,0 +1,8 @@ +{ + "properties": { + "scope": "/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-old/providers/Microsoft.ApiManagement/service/p-weu-apim-old/products/unlimited", + "allowTracing": false, + "ownerId": "/subscriptions/6a5e05c3-6e0d-453d-bed5-87d632cdc296/resourceGroups/p-weu-apim-old/providers/Microsoft.ApiManagement/service/p-weu-apim-old/users/1", + "state": "active" + } +} \ No newline at end of file