Create source definition from transfer object
post/providers/{providerId}/sourceDefinitions
Create a new source definition from transfer object. Other than the old source definition ID, all other source definition properties are preserved.
1{2 "creationTimeStamp": "0001-01-01T00:00:00Z",3 "modifiedTimeStamp": "0001-01-01T00:00:00Z",4 "createdBy": "sasjoe",5 "modifiedBy": "anonymousUse",6 "id": "ea1a9f8a-5013-4c89-8298-78c95659782e",7 "name": "sourceDefName1",8 "version": 2,9 "links": [10 {11 "method": "GET",12 "rel": "self",13 "href": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e",14 "uri": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e",15 "type": "application/vnd.sas.data.source.definition"16 },17 {18 "method": "PUT",19 "rel": "update",20 "href": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e",21 "uri": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e",22 "type": "application/vnd.sas.data.source.definition"23 },24 {25 "method": "DELETE",26 "rel": "delete",27 "href": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e",28 "uri": "/dataSources/providers/Compute/sourceDefinitions/ea1a9f8a-5013-4c89-8298-78c95659782e"29 },30 {31 "method": "GET",32 "rel": "up",33 "href": "/dataSources/providers/Compute/sourceDefinitions",34 "uri": "/dataSources/providers/Compute/sourceDefinitions",35 "type": "application/vnd.sas.collection",36 "itemType": "application/vnd.sas.data.source.definition"37 },38 {39 "method": "GET",40 "rel": "provider",41 "href": "/dataSources/providers/Compute",42 "uri": "/dataSources/providers/Compute",43 "type": "application/vnd.sas.data.provider"44 }45 ]46}
The source definition to be imported.
Information about a transfer object.
Name | Type | Required | Description |
---|---|---|---|
version | integer | false | The version number of the transfer object. |
id | string | false | The unique transfer object identifier. |
summary | object | false | The details of the source definition. |
content | string | false | The encoded data of the transfer object. |
connectors | array [object] | false | Items that are associated with the transfer object. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | A source definition was imported successfully. | Headers | Schema |
400 | Bad Request | The request was invalid. There was a provider mismatch between the transfer object content and requested provider. | Schema | |
404 | Not Found | No provider exists at the requested path. | Schema |