Share via


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
configurationServiceName
path True

string

pattern: ^[a-z][a-z0-9]*$

The name of Application Configuration Service.

resourceGroupName
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.

serviceName
path True

string

pattern: ^[a-z][a-z0-9-]*[a-z0-9]$

The name of the Service resource.

subscriptionId
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

ConfigurationServiceProperties

Application Configuration Service properties payload

Responses

Name Type Description
200 OK

ConfigurationServiceSettingsValidateResult

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

CloudError

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
CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

ConfigurationServiceGeneration

The generation of the Application Configuration Service.

ConfigurationServiceGitProperty

Property of git environment.

ConfigurationServiceGitPropertyValidateResult

Validation result for configuration service settings

ConfigurationServiceGitRepository

Git repository property payload for Application Configuration Service

ConfigurationServiceInstance

Collection of instances belong to the Application Configuration Service

ConfigurationServiceProperties

Application Configuration Service properties payload

ConfigurationServiceProvisioningState

State of the Application Configuration Service.

ConfigurationServiceResource

Application Configuration Service resource

ConfigurationServiceResourceRequests

Resource request payload of Application Configuration Service

ConfigurationServiceSettings

The settings of Application Configuration Service.

ConfigurationServiceSettingsValidateResult

Validation result for configuration service settings

createdByType

The type of identity that created the resource.

GitImplementation

Git libraries used to support various repository providers

lastModifiedByType

The type of identity that last modified the resource.

SystemData

Metadata pertaining to creation and last modification of the resource.

ValidationMessages

Validate messages of the configuration service git repositories

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

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

CloudErrorBody[]

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

ConfigurationServiceGitRepository[]

Repositories of Application Configuration Service git property.

ConfigurationServiceGitPropertyValidateResult

Validation result for configuration service settings

Name Type Description
gitReposValidationResult

ValidationMessages[]

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

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

ConfigurationServiceGeneration

Gen1

The generation of the Application Configuration Service.

instances

ConfigurationServiceInstance[]

Collection of instances belong to Application Configuration Service.

provisioningState

ConfigurationServiceProvisioningState

State of the Application Configuration Service.

resourceRequests

ConfigurationServiceResourceRequests

The requested resource quantity for required CPU and Memory.

settings

ConfigurationServiceSettings

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

ConfigurationServiceProperties

Application Configuration Service properties payload

systemData

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

ConfigurationServiceGitProperty

Property of git environment.

ConfigurationServiceSettingsValidateResult

Validation result for configuration service settings

Name Type Description
gitPropertyValidationResult

ConfigurationServiceGitPropertyValidateResult

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

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

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.