Enumerating Storage Locations in JSON-RPC API

You can get the list of storage Locations, using the EnumerateLocations method.

Required parameters

This method has no required or optional parameters and does not require a visa.

Sample request

{
    "jsonrpc":"2.0",
    "id":"jsonrpc",
    "method" : "EnumerateLocations",
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"result": [
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 1,
		    "Name": "Netherlands"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 2,
		    "Name": "Australia"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 3,
		    "Name": "Belgium"
	    },
	    {
		    "Id": 4,
		    "Name": "Belarus"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 5,
		    "Name": "Canada"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 6,
		    "Name": "Germany"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 7,
		    "Name": "Denmark"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 8,
		    "Name": "Spain"
	    },
	    {
		    "Id": 9,
		    "Name": "Finland"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 10,
		    "Name": "France"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 11,
		    "Name": "United Kingdom"
	    },
	    {
		    "Id": 12,
		    "Name": "Hungary"
	    },
	    {
		    "Id": 13,
		    "Name": "Israel"
	    },
	    {
		    "Id": 14,
		    "Name": "Kenya"
	    },
	    {
		    "Id": 15,
		    "Name": "Luxembourg"
	    },
	    {
		    "Id": 16,
		    "Name": "Poland"
	    },
		{
		    "Id": 17,
		    "Name": "Thailand"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 18,
		    "Name": "United States"
	    },
	    {
		    "Id": 19,
		    "Name": "Croatia"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 20,
		    "Name": "Italy"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 21,
		    "Name": "Switzerland"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 22,
		    "Name": "South Africa"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 23,
		    "Name": "Norway"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 24,
		    "Name": "Sweden"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 25,
		    "Name": "Portugal"
	    },
	    {
		    "Flags": [
			"StrictLocationPolicy"
		    ],
		    "Id": 28,
		    "Name": "Brazil"
	    },
	    {
		    "Id": 34,
		    "Name": "Ireland"
	    }
	]
    },
    "visa": "{{visa}}"
}