Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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,44 @@
{
"parameters": {
"api-version": "2024-06-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,18 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"certificateName": "default"
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://foo.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2024-06-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": "2024-06-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": "2024-06-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": "2024-06-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,18 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"configurationName": "default"
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://foo.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"deploymentName": "myDeployment",
"configurationName": "default"
},
"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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2024-06-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/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"
}
}
]
}
}
}
}
Loading