swagger: "2.0"
schemes:
  - https
host: azure.local
info:
  title: Azure App Configuration
  version: "1.0"
  x-apisguru-categories:
    - cloud
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png
  x-origin:
    - format: swagger
      url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/1.0/appconfiguration.json
      version: "2.0"
  x-preferred: false
  x-providerName: azure.com
  x-serviceName: appconfiguration
  x-tags:
    - Azure
    - Microsoft
parameters:
  ApiVersion:
    description: The API version to be used with the HTTP request.
    in: query
    name: api-version
    required: true
    type: string
  Endpoint:
    description: The endpoint of the App Configuration instance to send requests to.
    in: path
    name: endpoint
    required: true
    type: string
    x-ms-parameter-location: client
    x-ms-skip-url-encoding: true
  SyncTokens:
    description: Used to guarantee real-time consistency between requests.
    in: header
    name: Sync-Token
    type: string
paths:
  /keys:
    get:
      consumes: []
      operationId: GetKeys
      parameters:
        - description: A filter for the name of the returned keys.
          in: query
          name: name
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
      produces:
        - application/vnd.microsoft.appconfig.keyset+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyListResult"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Gets a list of keys.
      tags:
        - Keys
      x-ms-examples:
        GetKeys:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              body:
                items:
                  - name: MaxRequests
                  - name: RequestTimeout
              headers:
                Content-Type: application/vnd.microsoft.appconfig.keyset+json
      x-ms-pageable:
        itemName: items
        nextLinkName: "@nextLink"
    head:
      consumes: []
      operationId: CheckKeys
      parameters:
        - description: A filter for the name of the returned keys.
          in: query
          name: name
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
      produces: []
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
      summary: Requests the headers and status of the given resource.
      tags:
        - Keys
      x-ms-examples:
        CheckKeys:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.keyset+json
  /kv:
    get:
      consumes: []
      operationId: GetKeyValues
      parameters:
        - description: A filter used to match keys.
          in: query
          name: key
          type: string
        - description: A filter used to match labels
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces:
        - application/vnd.microsoft.appconfig.kvset+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValueListResult"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Gets a list of key-values.
      tags:
        - KeyValues
      x-ms-examples:
        GetKeyValues:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              body:
                items:
                  - content_type: null
                    etag: CTgHR5UrDKNj2nsoGWDOipST9Pv
                    key: Background
                    label: Asset1
                    last_modified: 2019-03-04T17:12:23+00:00
                    locked: false
                    tags: {}
                    value: blue
                  - content_type: null
                    etag: UTSN1zePHbBQ0npbRB6elGRRuH7
                    key: MaxLogFiles
                    label: Asset1
                    last_modified: 2019-03-04T17:12:23+00:00
                    locked: false
                    tags: {}
                    value: "50"
                  - content_type: null
                    etag: 7XpB48ET4VAlB9068ft6fKMyA3m
                    key: Message
                    label: null
                    last_modified: 2019-06-20T16:52:23+00:00
                    locked: false
                    tags: {}
                    value: Hello World
                  - content_type: null
                    etag: fAFm4jkGNB1hsIr4o0S5hnhCCvY
                    key: WebDemo:Settings:BackgroundColor
                    label: null
                    last_modified: 2019-06-20T15:48:01+00:00
                    locked: false
                    tags: {}
                    value: blue
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kvset+json
      x-ms-pageable:
        itemName: items
        nextLinkName: "@nextLink"
    head:
      consumes: []
      operationId: CheckKeyValues
      parameters:
        - description: A filter used to match keys.
          in: query
          name: key
          type: string
        - description: A filter used to match labels
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces: []
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
      summary: Requests the headers and status of the given resource.
      tags:
        - KeyValues
      x-ms-examples:
        CheckKeyValues:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kvset+json
  "/kv/{key}":
    delete:
      consumes: []
      operationId: DeleteKeyValue
      parameters:
        - description: The key of the key-value to delete.
          in: path
          name: key
          required: true
          type: string
        - description: The label of the key-value to delete.
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
      produces:
        - application/vnd.microsoft.appconfig.kv+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValue"
        "204":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Deletes a key-value.
      tags:
        - KeyValues
      x-ms-examples:
        DeleteKeyValue:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: 7XpB48ET4VAlB9068ft6fKMyA3m
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"7XpB48ET4VAlB9068ft6fKMyA3m"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
            "204": {}
        DeleteKeyValue_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV5
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
            "204": {}
    get:
      consumes: []
      operationId: GetKeyValue
      parameters:
        - description: The key of the key-value to retrieve.
          in: path
          name: key
          required: true
          type: string
        - description: The label of the key-value to retrieve.
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
        - description: Used to perform an operation only if the targeted resource's etag does not match the value provided.
          in: header
          name: If-None-Match
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces:
        - application/vnd.microsoft.appconfig.kv+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Last-Modified:
              description: A UTC datetime that specifies the last time the resource was modified.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValue"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Gets a single key-value.
      tags:
        - KeyValues
      x-ms-examples:
        GetKeyValue:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: 7XpB48ET4VAlB9068ft6fKMyA3m
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"7XpB48ET4VAlB9068ft6fKMyA3m"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        GetKeyValue_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV5
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        GetKeyValue_IfNoneMatch:
          parameters:
            If-None-Match: L10qpBghN693OaxydgTkLmrBbV5
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: 7XpB48ET4VAlB9068ft6fKMyA3m
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"7XpB48ET4VAlB9068ft6fKMyA3m"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
    head:
      consumes: []
      operationId: CheckKeyValue
      parameters:
        - description: The key of the key-value to retrieve.
          in: path
          name: key
          required: true
          type: string
        - description: The label of the key-value to retrieve.
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
        - description: Used to perform an operation only if the targeted resource's etag does not match the value provided.
          in: header
          name: If-None-Match
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces: []
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Last-Modified:
              description: A UTC datetime that specifies the last time the resource was modified.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
      summary: Requests the headers and status of the given resource.
      tags:
        - KeyValues
      x-ms-examples:
        CheckKeyValue:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"7XpB48ET4VAlB9068ft6fKMyA3m"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        CheckKeyValue_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        CheckKeyValue_IfNoneMatch:
          parameters:
            If-None-Match: L10qpBghN693OaxydgTkLmrBbV5
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"7XpB48ET4VAlB9068ft6fKMyA3m"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
    put:
      consumes:
        - application/vnd.microsoft.appconfig.kv+json
        - application/vnd.microsoft.appconfig.kvset+json
        - application/json
        - text/json
        - application/*+json
        - application/json-patch+json
      operationId: PutKeyValue
      parameters:
        - description: The key of the key-value to create.
          in: path
          name: key
          required: true
          type: string
        - description: The label of the key-value to create.
          in: query
          name: label
          type: string
        - description: The key-value to create.
          in: body
          name: entity
          schema:
            $ref: "#/definitions/KeyValue"
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
        - description: Used to perform an operation only if the targeted resource's etag does not match the value provided.
          in: header
          name: If-None-Match
          type: string
      produces:
        - application/vnd.microsoft.appconfig.kv+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValue"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Creates a key-value.
      tags:
        - KeyValues
      x-ms-examples:
        PutKeyValue:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: tnIHBkDYQwtdNMLoWtr5aybkKwL
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"tnIHBkDYQwtdNMLoWtr5aybkKwL"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        PutKeyValue_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV5
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
  /labels:
    get:
      consumes: []
      operationId: GetLabels
      parameters:
        - description: A filter for the name of the returned labels.
          in: query
          name: name
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - name
            type: string
          name: $Select
          type: array
      produces:
        - application/vnd.microsoft.appconfig.labelset+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/LabelListResult"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Gets a list of labels.
      tags:
        - Labels
      x-ms-examples:
        GetLabels:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              body:
                items:
                  - name: null
                  - name: Asset1
                  - name: Asset1/devCi
                  - name: Asset1/devCi/branch1
                  - name: WestUs
              headers:
                Content-Type: application/vnd.microsoft.appconfig.labelset+json
      x-ms-pageable:
        itemName: items
        nextLinkName: "@nextLink"
    head:
      consumes: []
      operationId: CheckLabels
      parameters:
        - description: A filter for the name of the returned labels.
          in: query
          name: name
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - name
            type: string
          name: $Select
          type: array
      produces: []
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
      summary: Requests the headers and status of the given resource.
      tags:
        - Labels
      x-ms-examples:
        CheckLabels:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.labelset+json
  "/locks/{key}":
    delete:
      consumes: []
      operationId: DeleteLock
      parameters:
        - description: The key of the key-value to unlock.
          in: path
          name: key
          required: true
          type: string
        - description: The label, if any, of the key-value to unlock.
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
        - description: Used to perform an operation only if the targeted resource's etag does not match the value provided.
          in: header
          name: If-None-Match
          type: string
      produces:
        - application/vnd.microsoft.appconfig.kv+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValue"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Unlocks a key-value.
      tags:
        - Locks
      x-ms-examples:
        DeleteLock:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: 0BGYCoQ6iNdp5NtQ7N8shrobo6s
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"0BGYCoQ6iNdp5NtQ7N8shrobo6s"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        DeleteLock_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV5
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: false
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
    put:
      consumes: []
      operationId: PutLock
      parameters:
        - description: The key of the key-value to lock.
          in: path
          name: key
          required: true
          type: string
        - description: The label, if any, of the key-value to lock.
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Used to perform an operation only if the targeted resource's etag matches the value provided.
          in: header
          name: If-Match
          type: string
        - description: Used to perform an operation only if the targeted resource's etag does not match the value provided.
          in: header
          name: If-None-Match
          type: string
      produces:
        - application/vnd.microsoft.appconfig.kv+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            ETag:
              description: An identifier representing the returned state of the resource.
              type: string
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValue"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Locks a key-value.
      tags:
        - Locks
      x-ms-examples:
        PutLock:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV4
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: true
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV4"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
        PutLock_IfMatch:
          parameters:
            If-Match: '"L10qpBghN693OaxydgTkLmrBbV5"'
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
            key: Message
          responses:
            "200":
              body:
                content_type: null
                etag: L10qpBghN693OaxydgTkLmrBbV5
                key: Message
                label: null
                last_modified: 2019-08-27T16:52:32+00:00
                locked: true
                tags: {}
                value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kv+json
                ETag: W/"L10qpBghN693OaxydgTkLmrBbV5"
                Last-Modified: Tue, 27 Aug 2019 16:52:32 GMT
                Sync-Token: zAJw6V16=NjotMSM3ODk3NjM=;sn=789763
  /revisions:
    get:
      consumes: []
      operationId: GetRevisions
      parameters:
        - description: A filter used to match keys.
          in: query
          name: key
          type: string
        - description: A filter used to match labels
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces:
        - application/vnd.microsoft.appconfig.kvset+json
        - application/json
        - application/problem+json
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
          schema:
            $ref: "#/definitions/KeyValueListResult"
        default:
          description: Error response describing why the operation failed
          schema:
            $ref: "#/definitions/Error"
      summary: Gets a list of key-value revisions.
      tags:
        - Revisions
      x-ms-examples:
        GetRevisions:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              body:
                items:
                  - content_type: null
                    etag: 0BGYCoQ6iNdp5NtQ7N8shrobo6s
                    key: Message
                    label: null
                    last_modified: 2019-08-27T16:52:32+00:00
                    locked: false
                    tags: {}
                    value: Hello World!
                  - content_type: null
                    etag: L10qpBghN693OaxydgTkLmrBbV4
                    key: Message
                    label: null
                    last_modified: 2019-08-27T16:52:20+00:00
                    locked: false
                    tags: {}
                    value: A new message.
                  - content_type: null
                    etag: tnIHBkDYQwtdNMLoWtr5aybkKwL
                    key: Message
                    label: null
                    last_modified: 2019-08-27T16:50:47+00:00
                    locked: false
                    tags: {}
                    value: Hello World!
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kvset+json
      x-ms-pageable:
        itemName: items
        nextLinkName: "@nextLink"
    head:
      consumes: []
      operationId: CheckRevisions
      parameters:
        - description: A filter used to match keys.
          in: query
          name: key
          type: string
        - description: A filter used to match labels
          in: query
          name: label
          type: string
        - $ref: "#/parameters/SyncTokens"
        - $ref: "#/parameters/ApiVersion"
        - description: Instructs the server to return elements that appear after the element referred to by the specified token.
          in: query
          name: After
          type: string
        - description: Requests the server to respond with the state of the resource at the specified time.
          in: header
          name: Accept-Datetime
          type: string
        - collectionFormat: csv
          description: Used to select what fields are present in the returned resource(s).
          in: query
          items:
            enum:
              - key
              - label
              - content_type
              - value
              - last_modified
              - tags
              - locked
              - etag
            type: string
          name: $Select
          type: array
      produces: []
      responses:
        "200":
          description: Success
          headers:
            Sync-Token:
              description: Enables real-time consistency between requests by providing the returned value in the next request made to the server.
              type: string
        default:
          description: Error response describing why the operation failed
      summary: Requests the headers and status of the given resource.
      tags:
        - Revisions
      x-ms-examples:
        CheckRevisions:
          parameters:
            api-version: "1.0"
            endpoint: https://{exampleAppConfigurationName}.azconfig.io
          responses:
            "200":
              headers:
                Content-Type: application/vnd.microsoft.appconfig.kvset+json
definitions:
  Error:
    description: Azure App Configuration error object.
    properties:
      detail:
        description: A detailed description of the error.
        type: string
      name:
        description: The name of the parameter that resulted in the error.
        type: string
      status:
        description: The HTTP status code that the error maps to.
        type: integer
      title:
        description: A brief summary of the error.
        type: string
      type:
        description: The type of the error.
        type: string
    readOnly: true
  Key:
    properties:
      name:
        readOnly: true
        type: string
    type: object
  KeyListResult:
    description: The result of a list request.
    properties:
      "@nextLink":
        description: The URI that can be used to request the next set of paged results.
        type: string
      items:
        description: The collection value.
        items:
          $ref: "#/definitions/Key"
        type: array
    type: object
  KeyValue:
    properties:
      content_type:
        type: string
      etag:
        type: string
      key:
        type: string
      label:
        type: string
      last_modified:
        format: date-time
        type: string
      locked:
        type: boolean
      tags:
        additionalProperties:
          type: string
        type: object
      value:
        type: string
    type: object
  KeyValueListResult:
    description: The result of a list request.
    properties:
      "@nextLink":
        description: The URI that can be used to request the next set of paged results.
        type: string
      items:
        description: The collection value.
        items:
          $ref: "#/definitions/KeyValue"
        type: array
    type: object
  Label:
    properties:
      name:
        readOnly: true
        type: string
    type: object
  LabelListResult:
    description: The result of a list request.
    properties:
      "@nextLink":
        description: The URI that can be used to request the next set of paged results.
        type: string
      items:
        description: The collection value.
        items:
          $ref: "#/definitions/Label"
        type: array
    type: object
x-ms-parameterized-host:
  hostTemplate: "{endpoint}"
  parameters:
    - $ref: "#/parameters/Endpoint"
  useSchemePrefix: false
