forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding 2024-06-01-preview for nginx (Azure#30043)
* initial base * adding 2024-06-01 * initial base * adding 2024-06-01 * fixed go error
- Loading branch information
1 parent
29e455d
commit c0a15f4
Showing
19 changed files
with
2,737 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...ager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Certificates_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...urce-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Certificates_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...esource-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Certificates_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...source-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Certificates_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Configurations_Analysis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...er/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Configurations_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ce-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Configurations_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ource-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Configurations_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...urce-manager/NGINX.NGINXPLUS/preview/2024-06-01-preview/examples/Configurations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.