Skip to content

Added 2025-03-01-preview swagger for Nginx.NginxPlus #34442

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"apiKeyName": "myApiKey",
"requestBody": {
"properties": {
"secretText": "00000000-0000-0000-0000-000000000000",
"endDateTime": "2024-09-01T00:00:00Z"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/apiKeys/myApiKey",
"name": "myApiKey",
"type": "Nginx.NginxPlus/nginxDeployments/apiKeys",
"properties": {
"hint": "000",
"endDateTime": "2024-09-01T00:00:00Z"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/apiKeys/myApiKey",
"name": "myApiKey",
"type": "Nginx.NginxPlus/nginxDeployments/apiKeys",
"properties": {
"hint": "000",
"endDateTime": "2024-09-01T00:00:00Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"apiKeyName": "myApiKey"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"apiKeyName": "myApiKey"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Nginx.NginxPlus/nginxDeployments/myDeployment/apiKeys/myApiKey",
"name": "myApiKey",
"type": "Nginx.NginxPlus/nginxDeployments/apiKeys",
"properties": {
"hint": "000",
"endDateTime": "2024-09-01T00:00:00Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Nginx.NginxPlus/nginxDeployments/myDeployment/apiKeys/myApiKey",
"name": "myApiKey",
"type": "Nginx.NginxPlus/nginxDeployments/apiKeys",
"properties": {
"hint": "000",
"endDateTime": "2024-09-01T00:00:00Z"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Nginx.NginxPlus/nginxDeployments/myDeployment/apiKeys/myApiKey2",
"name": "myApiKey2",
"type": "Nginx.NginxPlus/nginxDeployments/apiKeys",
"properties": {
"hint": "111",
"endDateTime": "2024-10-01T00:00:00Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"certificateName": "default",
"requestBody": {
"properties": {
"keyVirtualPath": "/src/cert/somekey.key",
"certificateVirtualPath": "/src/cert/somePath.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/certificates/default",
"name": "default",
"type": "nginx.nginxplus/nginxdeployments/certificates",
"properties": {
"provisioningState": "Succeeded",
"keyVirtualPath": "/src/cert/somekey.key",
"certificateVirtualPath": "/src/cert/somePath.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/certificates/default",
"name": "default",
"type": "nginx.nginxplus/nginxdeployments/certificates",
"properties": {
"provisioningState": "Accepted",
"keyVirtualPath": "/src/cert/somekey.key",
"certificateVirtualPath": "/src/cert/somePath.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"certificateName": "default"
},
"responses": {
"202": {
"headers": {
"Azure-AsyncOperation": "https://example.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"certificateName": "default"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/certificates/default",
"name": "default",
"type": "nginx.nginxplus/nginxdeployments/certificates",
"properties": {
"provisioningState": "Succeeded",
"keyVirtualPath": "/src/cert/somekey.key",
"certificateVirtualPath": "/src/cert/somePath.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID",
"sha1Thumbprint": "1234567890ABCDEF1234567890ABCDEF12345678",
"keyVaultSecretVersion": "12345678ef9a12345678ef9a12345678",
"keyVaultSecretCreated": "2020-01-01T00:00:00Z",
"certificateError": {
"code": "CertificateNotYetValid",
"message": "The certificate is not yet valid. The certificate is not yet valid. NotBefore: '2020-01-01T00:00:00Z', NotAfter: '2020-01-01T00:00:00Z'"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/certificates/cert1",
"name": "cert1",
"type": "nginx.nginxplus/nginxdeployments/certificates",
"properties": {
"provisioningState": "Succeeded",
"keyVirtualPath": "/src/cert/somekey.key",
"certificateVirtualPath": "/src/cert/somePath.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID",
"sha1Thumbprint": "1234567890ABCDEF1234567890ABCDEF12345678",
"keyVaultSecretVersion": "12345678ef9a12345678ef9a12345678",
"keyVaultSecretCreated": "2020-01-01T00:00:00Z",
"certificateError": {
"code": "CertificateNotYetValid",
"message": "The certificate is not yet valid. The certificate is not yet valid. NotBefore: '2020-01-01T00:00:00Z', NotAfter: '2020-01-01T00:00:00Z'"
}
}
},
{
"id": "/subscritions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/NGINX.NGINXPLUS/nginxDeployments/myDeployment/certificates/cert2",
"name": "cert2",
"type": "nginx.nginxplus/nginxdeployments/certificates",
"properties": {
"provisioningState": "Succeeded",
"keyVirtualPath": "/src/cert/somekey2.key",
"certificateVirtualPath": "/src/cert/somePath2.cert",
"keyVaultSecretId": "https://someKV.vault.azure.com/someSecretID2",
"sha1Thumbprint": "1234567890ABCDEF1234567890ABCDEF12345678",
"keyVaultSecretVersion": "12345678ef9a12345678ef9a12345678",
"keyVaultSecretCreated": "2020-01-01T00:00:00Z",
"certificateError": null
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"configurationName": "default",
"requestBody": {
"config": {
"files": [
{
"content": "ABCDEF==",
"virtualPath": "/etc/nginx/nginx.conf"
}
],
"package": {
"data": null
},
"rootFile": "/etc/nginx/nginx.conf"
}
}
},
"responses": {
"200": {
"body": {
"status": "FAILED",
"data": {
"errors": [
{
"id": "config-analysis-error-1",
"directive": "worker_processes",
"description": "Directives outside the http context are not allowed",
"file": "/etc/nginx/nginx.conf",
"line": 2,
"message": "You are not allowed to set the worker_processes directive",
"rule": "nginx-azure-load-balancer-allowed-directives"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"configurationName": "default",
"requestBody": {
"properties": {
"files": [
{
"content": "ABCDEF==",
"virtualPath": "/etc/nginx/nginx.conf"
}
],
"package": {
"data": null
},
"rootFile": "/etc/nginx/nginx.conf"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Nginx.NginxPlus/nginxDeployments/myDeployment/configurations/default",
"name": "default",
"type": "nginx.nginxplus/nginxDeployments/configurations",
"properties": {
"provisioningState": "Succeeded",
"files": [
{
"content": "ABCDEF==",
"virtualPath": "/etc/nginx/nginx.conf"
}
],
"package": {
"data": null
},
"rootFile": "/etc/nginx/nginx.conf"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Nginx.NginxPlus/nginxDeployments/myDeployment/configurations/default",
"name": "default",
"type": "nginx.nginxplus/nginxDeployments/configurations",
"properties": {
"provisioningState": "Accepted",
"files": [
{
"content": "ABCDEF==",
"virtualPath": "/etc/nginx/nginx.conf"
}
],
"package": {
"data": null
},
"rootFile": "/etc/nginx/nginx.conf"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2025-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"configurationName": "default"
},
"responses": {
"202": {
"headers": {
"Azure-AsyncOperation": "https://example.com/operationstatus"
}
},
"204": {}
}
}
Loading