CoreService

<back to all web services

GetResourceGroupVariables

ResourceGroup - CRUD

Gets the resourcegroups variables

Requires Authentication
Required role:TenantReader
The following routes are available for this service:
GET/api/resourcegroups/{Id}/variablesGets the resourcegroups variables
GET/resourcegroups/{Id}/variablesGets the resourcegroups variables
GetResourceGroupVariables Parameters:
NameParameterData TypeRequiredDescription
IdpathstringYes
TenantNameheaderstringYes
IncludeInheritedquerybool?NoInclude inherited variables
ItemsResponse<T> Parameters:
NameParameterData TypeRequiredDescription
ItemsformIList<VariableDto>Yes
OffsetformintNo
TotalformintNo
IsGroupedformboolNo
ResponseStatusformResponseStatusNo
MetaformDictionary<string, string>No
VariableDto Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
ValueformstringYesValue in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false, List = [1,2,3,4]). Note: string values need extra quotes
TypeformValueDataTypeNoThe data type of the value property
DescriptionformstringNo
IsInheritedformboolNo
EnvironmentformEnvironments?No
ValueDataType Enum:
String
Number
Boolean
List
Environments Enum:
Lab
Poc
Dev
Test
Int
Uat
Prod

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/resourcegroups/{Id}/variables HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":null,"offset":0,"total":0,"isGrouped":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"meta":{"String":"String"}}