Configuration Services - Validate Resource
Check if the Application Configuration Service resource is valid.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource?api-version=2023-12-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
configuration
|
path | True |
string pattern: ^[a-z][a-z0-9]*$ |
The name of Application Configuration Service. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
service
|
path | True |
string pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ |
The name of the Service resource. |
subscription
|
path | True |
string |
Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
properties |
Application Configuration Service properties payload |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success. The response describes the validation result of Application Configuration Service. |
|
202 Accepted |
Accepted. The response indicates the ConfigurationServiceSettings is validating. Headers Location: string |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
ConfigurationServices_ValidateResource
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/default/validateResource?api-version=2023-12-01
{
"properties": {
"settings": {
"gitProperty": {
"repositories": [
{
"name": "fake",
"uri": "https://github.com/fake-user/fake-repository",
"patterns": [
"app/dev"
],
"label": "master"
}
]
}
}
}
}
Sample response
{
"gitPropertyValidationResult": {
"isValid": true
}
}
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-12-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/Spring/default?api-version=2023-12-01
Definitions
Name | Description |
---|---|
Cloud |
An error response from the service. |
Cloud |
An error response from the service. |
Configuration |
The generation of the Application Configuration Service. |
Configuration |
Property of git environment. |
Configuration |
Validation result for configuration service settings |
Configuration |
Git repository property payload for Application Configuration Service |
Configuration |
Collection of instances belong to the Application Configuration Service |
Configuration |
Application Configuration Service properties payload |
Configuration |
State of the Application Configuration Service. |
Configuration |
Application Configuration Service resource |
Configuration |
Resource request payload of Application Configuration Service |
Configuration |
The settings of Application Configuration Service. |
Configuration |
Validation result for configuration service settings |
created |
The type of identity that created the resource. |
Git |
Git libraries used to support various repository providers |
last |
The type of identity that last modified the resource. |
System |
Metadata pertaining to creation and last modification of the resource. |
Validation |
Validate messages of the configuration service git repositories |
CloudError
An error response from the service.
Name | Type | Description |
---|---|---|
error |
An error response from the service. |
CloudErrorBody
An error response from the service.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
details |
A list of additional details about the error. |
|
message |
string |
A message describing the error, intended to be suitable for display in a user interface. |
target |
string |
The target of the particular error. For example, the name of the property in error. |
ConfigurationServiceGeneration
The generation of the Application Configuration Service.
Value | Description |
---|---|
Gen1 | |
Gen2 |
ConfigurationServiceGitProperty
Property of git environment.
Name | Type | Description |
---|---|---|
repositories |
Repositories of Application Configuration Service git property. |
ConfigurationServiceGitPropertyValidateResult
Validation result for configuration service settings
Name | Type | Description |
---|---|---|
gitReposValidationResult |
The detail validation results |
|
isValid |
boolean |
Indicate if the configuration service settings are valid |
ConfigurationServiceGitRepository
Git repository property payload for Application Configuration Service
Name | Type | Description |
---|---|---|
caCertResourceId |
string |
Resource Id of CA certificate for https URL of Git repository. |
gitImplementation |
Git libraries used to support various repository providers |
|
hostKey |
string |
Public sshKey of git repository. |
hostKeyAlgorithm |
string |
SshKey algorithm of git repository. |
label |
string |
Label of the repository |
name |
string |
Name of the repository |
password |
string |
Password of git repository basic auth. |
patterns |
string[] |
Collection of patterns of the repository |
privateKey |
string |
Private sshKey algorithm of git repository. |
searchPaths |
string[] |
Searching path of the repository |
strictHostKeyChecking |
boolean |
Strict host key checking or not. |
uri |
string |
URI of the repository |
username |
string |
Username of git repository basic auth. |
ConfigurationServiceInstance
Collection of instances belong to the Application Configuration Service
Name | Type | Description |
---|---|---|
name |
string |
Name of the Application Configuration Service instance |
status |
string |
Status of the Application Configuration Service instance |
ConfigurationServiceProperties
Application Configuration Service properties payload
Name | Type | Default value | Description |
---|---|---|---|
generation | Gen1 |
The generation of the Application Configuration Service. |
|
instances |
Collection of instances belong to Application Configuration Service. |
||
provisioningState |
State of the Application Configuration Service. |
||
resourceRequests |
The requested resource quantity for required CPU and Memory. |
||
settings |
The settings of Application Configuration Service. |
ConfigurationServiceProvisioningState
State of the Application Configuration Service.
Value | Description |
---|---|
Creating | |
Updating | |
Succeeded | |
Failed | |
Deleting |
ConfigurationServiceResource
Application Configuration Service resource
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource Id for the resource. |
name |
string |
The name of the resource. |
properties |
Application Configuration Service properties payload |
|
systemData |
Metadata pertaining to creation and last modification of the resource. |
|
type |
string |
The type of the resource. |
ConfigurationServiceResourceRequests
Resource request payload of Application Configuration Service
Name | Type | Description |
---|---|---|
cpu |
string |
Cpu allocated to each Application Configuration Service instance |
instanceCount |
integer (int32) |
Instance count of the Application Configuration Service |
memory |
string |
Memory allocated to each Application Configuration Service instance |
ConfigurationServiceSettings
The settings of Application Configuration Service.
Name | Type | Description |
---|---|---|
gitProperty |
Property of git environment. |
ConfigurationServiceSettingsValidateResult
Validation result for configuration service settings
Name | Type | Description |
---|---|---|
gitPropertyValidationResult |
Validation result for configuration service settings |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
GitImplementation
Git libraries used to support various repository providers
Value | Description |
---|---|
go-git | |
libgit2 |
lastModifiedByType
The type of identity that last modified the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
SystemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource modification (UTC). |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
ValidationMessages
Validate messages of the configuration service git repositories
Name | Type | Description |
---|---|---|
messages |
string[] |
Detailed validation messages. |
name |
string |
The name of the configuration service git repository. |