Skip to content
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

AppConfiguration 2024-06-01 #29824

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
eed6fd2
Copy 2023-09-01-preview as the base api version for 2024-09-01-preview
hahahahahaiyiwen Jul 15, 2024
16f84c8
Update 2024-09-01-preview
hahahahahaiyiwen Jul 15, 2024
0f51b29
Prettier
hahahahahaiyiwen Jul 15, 2024
52db19a
Update readme
hahahahahaiyiwen Jul 15, 2024
9564a31
Address comments
hahahahahaiyiwen Jul 16, 2024
05953f6
Add saskind enum
hahahahahaiyiwen Jul 18, 2024
e96badb
Merge branch 'main' of https://github.com/hahahahahaiyiwen/azure-rest…
hahahahahaiyiwen Jul 18, 2024
d8d16d6
add discriminator for signed parameters
hahahahahaiyiwen Jul 19, 2024
a997739
add discriminator for signed parameters
hahahahahaiyiwen Jul 19, 2024
319fee7
add discriminator for signed parameters
hahahahahaiyiwen Jul 19, 2024
0028cda
add discriminator for signed parameters
hahahahahaiyiwen Jul 19, 2024
75ee126
Update signedParameters
hahahahahaiyiwen Jul 22, 2024
3f94832
Update signedParameters
hahahahahaiyiwen Jul 22, 2024
48d7380
Rename SignedParameters
hahahahahaiyiwen Jul 23, 2024
0472647
Prettier
hahahahahaiyiwen Jul 23, 2024
aedd92d
Add EnableSasAuth
hahahahahaiyiwen Aug 8, 2024
191c170
Update sasAuth
hahahahahaiyiwen Aug 8, 2024
1f5ea7d
Update sasAuth
hahahahahaiyiwen Aug 20, 2024
b79e29f
Address comments
hahahahahaiyiwen Aug 20, 2024
ff29cbc
Address comments
hahahahahaiyiwen Aug 20, 2024
696d45c
Prettier
hahahahahaiyiwen Aug 20, 2024
153ecd9
Update based on discussion
hahahahahaiyiwen Aug 21, 2024
c75885d
Update based on feedback
hahahahahaiyiwen Aug 21, 2024
cb1e93f
Update based on feedback
hahahahahaiyiwen Aug 22, 2024
a63ade4
Update based on feedback
hahahahahaiyiwen Aug 22, 2024
bc7c607
Update specification/appconfiguration/resource-manager/Microsoft.AppC…
hahahahahaiyiwen Sep 9, 2024
241d147
Update reset sas key response body
hahahahahaiyiwen Sep 20, 2024
9e3ce44
Merge branch 'appconfig/Add2024-09-01-preview' of https://github.com/…
hahahahahaiyiwen Sep 20, 2024
b629e41
Update reset sas key response body
hahahahahaiyiwen Sep 20, 2024
17c7e05
Fix cross version change
hahahahahaiyiwen Sep 20, 2024
12cf046
Merge branch 'main' of https://github.com/hahahahahaiyiwen/azure-rest…
hahahahahaiyiwen Sep 26, 2024
ff6c6cc
Update reset sas kind response
hahahahahaiyiwen Sep 26, 2024
4bfcc43
Address comments
hahahahahaiyiwen Sep 30, 2024
ca6f035
Rename 2024-09-01-preview to 2024-06-01-preivew, add location header …
hahahahahaiyiwen Oct 16, 2024
fc5ade0
Update Retry-After description
hahahahahaiyiwen Oct 17, 2024
f503972
Update sas token sample
hahahahahaiyiwen Oct 18, 2024
72399e1
Merge branch 'Azure:main' into appconfig/Add2024-09-01-preview
hahahahahaiyiwen Jan 17, 2025
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
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2023-09-01-preview",
"version": "2024-09-01-preview",
"title": "AppConfigurationManagementClient"
},
"host": "management.azure.com",
Expand Down Expand Up @@ -477,6 +477,105 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/generateSasToken": {
"post": {
"tags": [
"ConfigurationStores"
],
"description": "Generates a SAS token for scoped, read-only access of the specified configuration store.",
"operationId": "ConfigurationStores_GenerateSasToken",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ConfigStoreNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "sasTokenGenerationParameters",
"in": "body",
"description": "The object containing information for the SAS token generation request.",
"required": true,
"schema": {
"$ref": "#/definitions/SasTokenGenerationParameters"
}
}
],
"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/SasTokenGenerationResult"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"ConfigurationStores_ListKeys": {
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
"$ref": "./examples/ConfigurationStoresSasTokenGeneration.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/resetSasTokens": {
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
"post": {
"tags": [
"ConfigurationStores"
],
"description": "Reset all SAS tokens of a given kind (primary/secondary).",
hahahahahaiyiwen marked this conversation as resolved.
Show resolved Hide resolved
"operationId": "ConfigurationStores_ResetSasTokens",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ConfigStoreNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "resetSasTokensParameters",
"in": "body",
"description": "The object containing information for the SAS token reset request.",
"required": true,
"schema": {
"$ref": "#/definitions/ResetSasTokensParameters"
}
}
],
"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly."
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"ConfigurationStores_ListKeys": {
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
"$ref": "./examples/ConfigurationStoresResetSasTokens.json"
}
}
}
},
"/providers/Microsoft.AppConfiguration/operations": {
"get": {
"tags": [
Expand Down Expand Up @@ -1921,6 +2020,139 @@
}
}
},
"SasTokenGenerationParameters": {
"description": "Parameters used for generating SAS token.",
"required": [
"resourceType",
"expires",
"kind"
hahahahahaiyiwen marked this conversation as resolved.
Show resolved Hide resolved
],
"type": "object",
"properties": {
"resourceType": {
"description": "The data plane resource type that the SAS token is authorized to access.",
"type": "string",
"enum": [
"Kv",
"Snapshot"
],
"x-ms-enum": {
"name": "resourceType",
"modelAsString": true
}
},
"signedParameters": {
"description": "The parameters to define the data plane resource scope.",
"$ref": "#/definitions/SignedParameters"
},
"expires": {
"description": "The time that the SAS token expires in the Universal ISO 8601 DateTime format. Max allowed expiration is 1 year from the time of token creation.",
"type": "string",
"format": "date-time"
},
"cacheControlMaxAge": {
"description": "Time (in seconds) for which the data plane response may be cached by clients. App Configuration sets the Cache-Control response header `max-age` to the value that's specified on the SAS token. See [rfc9111](https://www.rfc-editor.org/rfc/rfc9111#name-max-age-2) for more details.",
"type": "number"
},
"kind": {
"description": "The kind of the SAS token.",
"type": "string",
"enum": [
"Primary",
"Secondary"
],
"x-ms-enum": {
"name": "kind",
"modelAsString": true
}
}
}
},
"SignedParameters": {
"description": "The parameters to define the data plane resource scope that the SAS token is authorized to access.",
"type": "object",
"properties": {
"key": {
"description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering. This is only applicable when the resourceType is Kv.",
"type": "string"
},
"label": {
"description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering. This is only applicable when the resourceType is Kv.",
"type": "string"
},
"tags": {
"description": "Am array of tag filters used to match tags.",
"type": "array",
"items": {
"description": "A filter used to match key-values by their tags, specified in `tagName=tagValue` format. This is only applicable when the resourceType is Kv.",
"type": "string"
}
},
"name": {
"description": "The name of the snapshot. This is only applicable when the resourceType is Snapshot.",
"type": "string"
}
}
},
"SasTokenGenerationResult": {
"description": "The result of a request to generate a SAS token.",
"type": "object",
"properties": {
"resourceType": {
"description": "The data plane resource type that the SAS token is authorized to access.",
"type": "string",
"readOnly": true
},
"signedParameters": {
"description": "The parameters to define the data plane resource scope.",
"$ref": "#/definitions/SignedParameters",
"readOnly": true
},
"expires": {
"description": "The time that the SAS token expires in the Universal ISO 8601 DateTime format. Max allowed expiration is 1 year from the time of token creation.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"cacheControlMaxAge": {
"description": "Time (in seconds) for which the data plane response may be cached by clients. App Configuration sets the Cache-Control response header `max-age` to the value that's specified on the SAS token. See [rfc9111](https://www.rfc-editor.org/rfc/rfc9111#name-max-age-2) for more details.",
"type": "number"
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
},
"kind": {
"description": "The kind of the SAS token.",
"type": "string",
"readOnly": true
},
"value": {
"description": "The value of the SAS token.",
"type": "string",
"format": "password",
"x-ms-secret": true,
"readOnly": true
}
}
},
"ResetSasTokensParameters": {
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
"description": "Parameters used for resetting SAS token.",
"required": [
"kind"
avanigupta marked this conversation as resolved.
Show resolved Hide resolved
],
"type": "object",
"properties": {
"kind": {
"description": "The kind of the SAS token.",
"type": "string",
"enum": [
"Primary",
"Secondary"
],
"x-ms-enum": {
"name": "kind",
"modelAsString": true
}
}
}
},
"KeyValueListResult": {
"description": "The result of a request to list key-values.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"checkNameAvailabilityParameters": {
"name": "contoso",
"type": "Microsoft.AppConfiguration/configurationStores"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"checkNameAvailabilityParameters": {
"name": "contoso",
"type": "Microsoft.AppConfiguration/configurationStores"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"configStoreCreationParameters": {
"location": "westus",
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"keyValueName": "myKey$myLabel",
"keyValueParameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"replicaCreationParameters": {
"location": "eastus"
},
"api-version": "2023-09-01-preview"
"api-version": "2024-09-01-preview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"snapshotName": "mySnapshot",
"body": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"configStoreCreationParameters": {
"location": "westus",
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"configStoreCreationParameters": {
"location": "westus",
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"configStoreCreationParameters": {
"location": "westus",
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"configStoreCreationParameters": {
"location": "westus",
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview"
"api-version": "2024-09-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01-preview"
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-09-01-preview"
}
},
"204": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"api-version": "2023-09-01-preview",
"api-version": "2024-09-01-preview",
"keyValueName": "myKey$myLabel"
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01-preview"
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-09-01-preview"
}
},
"204": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"resourceGroupName": "myResourceGroup",
"configStoreName": "contoso",
"privateEndpointConnectionName": "myConnection",
"api-version": "2023-09-01-preview"
"api-version": "2024-09-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01-preview"
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-09-01-preview"
}
},
"204": {}
Expand Down
Loading