Get Availability Rules

You can view a single availability rule using the getAvailability query. The only field you need to get an availability entry is its UID.

query getAvailability {
  getAvailability(uid: "d53332c0-6ed6-4c97-996f-b5bc4982ba98") {
    # Return fields
    uid
    start
    end
    dimensions {
      objects {
        # dimension slug
        uid
        slug
        values {
          objects {
            # dimension value slug
            uid
            slug
          }
        }
      }
  }
}

Response:

{
  "data": {
    "getAvailability": {
      "start": "2020-01-01T00:00:00Z",
      "end": "2023-01-01T00:00:00Z",
      "dimensions": {
        "objects": [
          {
            "slug": "operating-system",
            "uid": "20d435d8-bc42-4c96-9db5-17615cb4244f"
            "values" {
            	"objects": [
           		 {
            			"slug": "ios",
                  "uid": "c4bbc3a1-1bbb-42f8-82ba-f84b3b90f46a"
         			 }
             ]
          }
        ]  
      }
    }
  }
}

Just like any other object, availability can also be created and retrieved by external_id.