Mixed Reality icon

Mixed Reality

Mixed Reality Resource Provider Spatial Anchors Resource API

COMMUNITYBEARER0 INSTALLS
OpenAPI Specificationv3.0
{
  "swagger": "2.0",
  "schemes": [
    "https"
  ],
  "host": "management.azure.com",
  "info": {
    "description": "Mixed Reality Resource Provider Spatial Anchors Resource API",
    "title": "Mixed Reality",
    "version": "2019-12-02-preview",
    "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/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/spatial-anchors.json",
        "version": "2.0"
      }
    ],
    "x-providerName": "azure.com",
    "x-serviceName": "mixedreality-spatial-anchors",
    "x-tags": [
      "Azure",
      "Microsoft"
    ]
  },
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "securityDefinitions": {
    "azure_auth": {
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
      "description": "Azure Active Directory OAuth2 Flow",
      "flow": "implicit",
      "scopes": {
        "user_impersonation": "Impersonate your user account"
      },
      "type": "oauth2"
    }
  },
  "security": [
    {
      "azure_auth": [
        "user_impersonation"
      ]
    }
  ],
  "parameters": {
    "spatialAnchorsAccountParameter": {
      "description": "Spatial Anchors Account parameter.",
      "in": "body",
      "name": "spatialAnchorsAccount",
      "required": true,
      "schema": {
        "$ref": "#/definitions/SpatialAnchorsAccount"
      },
      "x-ms-parameter-location": "method"
    }
  },
  "paths": {
    "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": {
      "get": {
        "description": "List Spatial Anchors Accounts by Subscription",
        "operationId": "SpatialAnchorsAccounts_ListBySubscription",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccountPage"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource",
          "Proxy"
        ],
        "x-ms-examples": {
          "List spatial anchors accounts by subscription": {
            "parameters": {
              "api-version": "2019-02-28-preview",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "nextLink": "https://aka.ms/&^FDKKAR",
                  "value": [
                    {
                      "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                      "location": "eastus2euap",
                      "name": "MyAccount",
                      "properties": {
                        "accountDomain": "mixedreality.azure.com",
                        "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                      },
                      "tags": {},
                      "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                    },
                    {
                      "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/omega",
                      "location": "eastus2euap",
                      "name": "omega",
                      "properties": {
                        "accountDomain": "mixedreality.azure.com",
                        "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                      },
                      "tags": {},
                      "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-ms-pageable": {
          "nextLinkName": "nextLink"
        }
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": {
      "get": {
        "description": "List Resources by Resource Group",
        "operationId": "SpatialAnchorsAccounts_ListByResourceGroup",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccountPage"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource"
        ],
        "x-ms-examples": {
          "List spatial anchor accounts by resource group": {
            "parameters": {
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "nextLink": "https://aka.ms/&^FDKKAR",
                  "value": [
                    {
                      "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                      "location": "eastus2euap",
                      "name": "MyAccount",
                      "properties": {
                        "accountDomain": "mixedreality.azure.com",
                        "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                      },
                      "tags": {},
                      "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                    },
                    {
                      "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/omega",
                      "location": "eastus2euap",
                      "name": "omega",
                      "properties": {
                        "accountDomain": "mixedreality.azure.com",
                        "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                      },
                      "tags": {},
                      "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-ms-pageable": {
          "nextLinkName": "nextLink"
        }
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}": {
      "delete": {
        "description": "Delete a Spatial Anchors Account.",
        "operationId": "SpatialAnchorsAccounts_Delete",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "204": {
            "description": "NoContent"
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource"
        ],
        "x-ms-examples": {
          "Delete spatial anchors account": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {},
              "204": {}
            }
          }
        }
      },
      "get": {
        "description": "Retrieve a Spatial Anchors Account.",
        "operationId": "SpatialAnchorsAccounts_Get",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccount"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource"
        ],
        "x-ms-examples": {
          "Get spatial anchors account": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                  "location": "eastus2euap",
                  "name": "MyAccount",
                  "properties": {
                    "accountDomain": "mixedreality.azure.com",
                    "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                  },
                  "tags": {},
                  "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                }
              }
            }
          }
        }
      },
      "patch": {
        "description": "Updating a Spatial Anchors Account",
        "operationId": "SpatialAnchorsAccounts_Update",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "$ref": "#/parameters/spatialAnchorsAccountParameter"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccount"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource"
        ],
        "x-ms-examples": {
          "Update spatial anchors account": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "spatialAnchorsAccount": {
                "Tags": {
                  "hero": "romeo",
                  "heroine": "juliet"
                }
              },
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                  "location": "eastus2euap",
                  "name": "MyAccount",
                  "properties": {
                    "accountDomain": "mixedreality.azure.com",
                    "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                  },
                  "tags": {
                    "hero": "romeo",
                    "heroine": "juliet"
                  },
                  "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                }
              }
            }
          }
        }
      },
      "put": {
        "description": "Creating or Updating a Spatial Anchors Account.",
        "operationId": "SpatialAnchorsAccounts_Create",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "$ref": "#/parameters/spatialAnchorsAccountParameter"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccount"
            }
          },
          "201": {
            "description": "Created",
            "schema": {
              "$ref": "#/definitions/SpatialAnchorsAccount"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Resource"
        ],
        "x-ms-examples": {
          "Create spatial anchor account": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "spatialAnchorsAccount": {
                "location": "eastus2euap"
              },
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                  "location": "eastus2euap",
                  "name": "MyAccount",
                  "properties": {
                    "accountDomain": "mixedreality.azure.com",
                    "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                  },
                  "tags": {},
                  "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                }
              },
              "201": {
                "body": {
                  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/MyAccount",
                  "location": "eastus2euap",
                  "name": "MyAccount",
                  "properties": {
                    "accountDomain": "mixedreality.azure.com",
                    "accountId": "5007a881-6fb4-4c93-be52-942e355944a5"
                  },
                  "tags": {},
                  "type": "Microsoft.MixedReality/SpatialAnchorsAccounts"
                }
              }
            }
          }
        }
      }
    },
    "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/keys": {
      "get": {
        "description": "Get Both of the 2 Keys of a Spatial Anchors Account",
        "operationId": "SpatialAnchorsAccounts_GetKeys",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "description": "Developer Keys of account",
              "properties": {
                "primaryKey": {
                  "description": "value of primary key.",
                  "readOnly": true,
                  "type": "string"
                },
                "secondaryKey": {
                  "description": "value of secondary key.",
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Key"
        ],
        "x-ms-examples": {
          "Get spatial anchor account key": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
                  "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
                }
              }
            }
          }
        }
      },
      "post": {
        "description": "Regenerate specified Key of a Spatial Anchors Account",
        "operationId": "SpatialAnchorsAccounts_RegenerateKeys",
        "parameters": [
          {
            "description": "Azure subscription ID.",
            "in": "path",
            "name": "subscriptionId",
            "required": true,
            "type": "string"
          },
          {
            "description": "Name of an Azure resource group.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "resourceGroupName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Name of an Mixed Reality Account.",
            "in": "path",
            "maxLength": 90,
            "minLength": 1,
            "name": "accountName",
            "pattern": "^[-\\w\\._\\(\\)]+$",
            "required": true,
            "type": "string",
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Required information for key regeneration.",
            "in": "body",
            "name": "regenerate",
            "required": true,
            "schema": {
              "description": "Request for account key regeneration",
              "properties": {
                "serial": {
                  "default": 1,
                  "description": "serial of key to be regenerated",
                  "enum": [
                    1,
                    2
                  ],
                  "type": "integer",
                  "x-ms-enum": {
                    "name": "Serial",
                    "values": [
                      {
                        "description": "The Primary Key",
                        "name": "Primary",
                        "value": 1
                      },
                      {
                        "description": "The Secondary Key",
                        "name": "Secondary",
                        "value": 2
                      }
                    ]
                  }
                }
              },
              "type": "object"
            },
            "x-ms-parameter-location": "method"
          },
          {
            "description": "Version of the API to be used with the client request.",
            "in": "query",
            "name": "api-version",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "description": "Developer Keys of account",
              "properties": {
                "primaryKey": {
                  "description": "value of primary key.",
                  "readOnly": true,
                  "type": "string"
                },
                "secondaryKey": {
                  "description": "value of secondary key.",
                  "readOnly": true,
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed.",
            "schema": {
              "description": "Response on Error",
              "properties": {
                "code": {
                  "description": "String that can be used to programmatically identify the error.",
                  "type": "string"
                },
                "details": {
                  "description": "An array of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.The contents of this section are service-defined but must adhere to the aforementioned schema.",
                  "type": "string"
                },
                "message": {
                  "description": "Describes the error in detail and provides debugging information",
                  "type": "string"
                },
                "target": {
                  "description": "The target of the particular error",
                  "type": "string"
                }
              },
              "required": [
                "message",
                "code"
              ],
              "type": "object"
            }
          }
        },
        "tags": [
          "Key"
        ],
        "x-ms-examples": {
          "Regenerate spatial anchors account keys": {
            "parameters": {
              "accountName": "MyAccount",
              "api-version": "2019-02-28-preview",
              "regenerate": {
                "serial": 1
              },
              "resourceGroupName": "MyResourceGroup",
              "resourceType": "SpatialAnchorsAccount",
              "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            "responses": {
              "200": {
                "body": {
                  "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
                  "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
                }
              }
            }
          }
        }
      }
    }
  },
  "definitions": {
    "SpatialAnchorsAccount": {
      "allOf": [
        {
          "allOf": [
            {
              "properties": {
                "id": {
                  "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
                  "readOnly": true,
                  "type": "string"
                },
                "name": {
                  "description": "The name of the resource",
                  "readOnly": true,
                  "type": "string"
                },
                "type": {
                  "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.",
                  "readOnly": true,
                  "type": "string"
                }
              },
              "x-ms-azure-resource": true
            }
          ],
          "description": "The resource model definition for a ARM tracked top level resource",
          "properties": {
            "location": {
              "description": "The geo-location where the resource lives",
              "type": "string",
              "x-ms-mutability": [
                "read",
                "create"
              ]
            },
            "tags": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "Resource tags.",
              "type": "object",
              "x-ms-mutability": [
                "read",
                "create",
                "update"
              ]
            }
          },
          "required": [
            "location"
          ]
        }
      ],
      "description": "SpatialAnchorsAccount Response.",
      "properties": {
        "properties": {
          "description": "Common Properties shared by Mixed Reality Accounts",
          "properties": {
            "accountDomain": {
              "description": "Correspond domain name of certain Spatial Anchors Account",
              "readOnly": true,
              "type": "string"
            },
            "accountId": {
              "description": "unique id of certain account.",
              "readOnly": true,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "SpatialAnchorsAccountPage": {
      "description": "Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.",
      "properties": {
        "nextLink": {
          "description": "URL to get the next set of resource list results if there are any.",
          "type": "string"
        },
        "value": {
          "description": "List of resources supported by the Resource Provider.",
          "items": {
            "$ref": "#/definitions/SpatialAnchorsAccount"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  }
}