Azure Container Instances · JSON Structure

Azure Container Instances Git Repo Volume Structure

Represents a volume that is populated with the contents of a git repository

Type: object Properties: 3 Required: 1
AzureCloudContainer InstancesContainersMicrosoftServerless

GitRepoVolume is a JSON Structure definition published by Azure Container Instances, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

directory repository revision

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-instances/refs/heads/main/json-structure/azure-container-instances-git-repo-volume-structure.json",
  "description": "Represents a volume that is populated with the contents of a git repository",
  "properties": {
    "directory": {
      "description": "Target directory name. Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the git repository.  Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.",
      "type": "string"
    },
    "repository": {
      "description": "Repository URL",
      "type": "string"
    },
    "revision": {
      "description": "Commit hash for the specified revision.",
      "type": "string"
    }
  },
  "type": "object",
  "required": [
    "repository"
  ],
  "name": "GitRepoVolume"
}