Get the list of revisions for a global variable

get/globalVariables/{globalVariableId}/revisions
Internal-Use Only

Returns a list of global variables.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/referenceData/globalVariables",
7 "uri": "/referenceData/globalVariables",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.data.reference.global.variable"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/referenceData/globalVariables?sortBy=modifiedTimeStamp:descending",
15 "uri": "/referenceData/globalVariables?sortBy=modifiedTimeStamp:descending",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.data.reference.global.variable"
18 },
19 {
20 "method": "GET",
21 "rel": "up",
22 "href": "/referenceData/",
23 "uri": "/referenceData/",
24 "type": "application/vnd.sas.api"
25 },
26 {
27 "method": "POST",
28 "rel": "createGlobalVariable",
29 "href": "/referenceData/globalVariables",
30 "uri": "/referenceData/globalVariables",
31 "type": "application/vnd.sas.data.reference.global.variable",
32 "responseType": "application/vnd.sas.data.reference.global.variable"
33 }
34 ],
35 "name": "globalVariables",
36 "accept": "application/vnd.sas.collection",
37 "count": 2,
38 "items": [
39 {
40 "creationTimeStamp": "2023-01-20T18:19:24.946Z",
41 "modifiedTimeStamp": "2023-01-20T18:19:24.957Z",
42 "createdBy": "sasdemo",
43 "modifiedBy": "sasdemo",
44 "id": "c1c9b056-70a6-4010-b856-1615bda1d8b0",
45 "majorRevision": 1,
46 "minorRevision": 0,
47 "name": "exampleVar",
48 "dataType": "string",
49 "defaultValue": "asdf",
50 "hidden": false,
51 "status": "developing",
52 "locked": false,
53 "links": [
54 {
55 "method": "GET",
56 "rel": "self",
57 "href": "/referenceData/globalVariables/c1c9b056-70a6-4010-b856-1615bda1d8b0",
58 "uri": "/referenceData/globalVariables/c1c9b056-70a6-4010-b856-1615bda1d8b0",
59 "responseType": "application/vnd.sas.data.reference.global.variable"
60 },
61 {
62 "method": "DELETE",
63 "rel": "delete",
64 "href": "/referenceData/globalVariables/c1c9b056-70a6-4010-b856-1615bda1d8b0",
65 "uri": "/referenceData/globalVariables/c1c9b056-70a6-4010-b856-1615bda1d8b0"
66 }
67 ]
68 },
69 {
70 "creationTimeStamp": "2023-01-17T16:29:31.851Z",
71 "modifiedTimeStamp": "2023-01-17T16:29:31.856Z",
72 "createdBy": "sasdemo",
73 "modifiedBy": "sasdemo",
74 "id": "38b4d801-f744-45cf-8e97-12a109daf3af",
75 "activeVersionId": "8eb475bb-4a78-46ea-bb0b-a74206b3fc0e",
76 "majorRevision": 1,
77 "minorRevision": 1,
78 "name": "gv_string_hmeq_value",
79 "dataType": "string",
80 "defaultValue": "exampleValue",
81 "hidden": false,
82 "status": "developing",
83 "locked": false,
84 "links": [
85 {
86 "method": "GET",
87 "rel": "self",
88 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
89 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
90 "responseType": "application/vnd.sas.data.reference.global.variable"
91 },
92 {
93 "method": "DELETE",
94 "rel": "delete",
95 "href": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af",
96 "uri": "/referenceData/globalVariables/38b4d801-f744-45cf-8e97-12a109daf3af"
97 }
98 ]
99 }
100 ],
101 "version": 2
102}

Path Parameters

NameTypeRequiredDescription
globalVariableId
string
true

The identifier of a global variable.

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The filter criteria for the returned global variable revisions.

limit
integer
false

The maximum number of items to return on this page. The actual number of returned items might be less if there are no more items in the collection. The default is 10.

sortBy
string<sort-criteria>
false

Criteria used for sorting the global variable revisions. The default sort order is creationTimeStamp:ascending.

start
integer
false

The starting index of the first item on a page. The index is 0-based. The default index is 0.

Header Parameters

NameTypeRequiredDescription
Accept
string
false

Select the desired representation.

Allowed values:
application/vnd.sas.collection+jsonapplication/json
Default:
application/vnd.sas.collection+json
Accept-Item
string
false

Select the desired item representation.

Allowed value:
application/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.dcm.summary+json

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema