Get Content Source

Get Content Source

Get a content source

Request
URI
GET
https://vra-interop-222-139.lvn.broadcom.net/content/api/sources/{id}
COPY
Path Parameters
string
id
Required

ID of the content source

Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about


Authentication
This operation uses the following authentication methods.
Responses
200

Content source

Returns ContentSource of type(s) application/json
{
    "id": "string",
    "name": "string",
    "description": "string",
    "typeId": "string",
    "createdAt": "string",
    "createdBy": "string",
    "lastUpdatedAt": "string",
    "lastUpdatedBy": "string",
    "projectId": "string",
    "config": {},
    "orgId": "string",
    "syncEnabled": false
}
string As uuid As uuid
id
Required

Content Source id

string
name
Required

Content Source name

string
description
Optional

Content Source description

string
typeId
Required

Content Source type

Possible values are : com.github, com.github.enterprise, com.gitlab, com.gitlab.enterprise, org.bitbucket,
string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
projectId
Required

Associated projects

object
config
Optional

config

string
orgId
Optional

Associated org

boolean
syncEnabled
Optional

Is Sync Enabled


401

Unauthorized

Returns ContentSource of type(s) application/json
"ContentSource Object"
string As uuid As uuid
id
Required

Content Source id

string
name
Required

Content Source name

string
description
Optional

Content Source description

string
typeId
Required

Content Source type

Possible values are : com.github, com.github.enterprise, com.gitlab, com.gitlab.enterprise, org.bitbucket,
string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
projectId
Required

Associated projects

object
config
Optional

config

string
orgId
Optional

Associated org

boolean
syncEnabled
Optional

Is Sync Enabled


403

Forbidden

Returns ContentSource of type(s) application/json
"ContentSource Object"
string As uuid As uuid
id
Required

Content Source id

string
name
Required

Content Source name

string
description
Optional

Content Source description

string
typeId
Required

Content Source type

Possible values are : com.github, com.github.enterprise, com.gitlab, com.gitlab.enterprise, org.bitbucket,
string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
projectId
Required

Associated projects

object
config
Optional

config

string
orgId
Optional

Associated org

boolean
syncEnabled
Optional

Is Sync Enabled


404

Content source not found

Returns ContentSource of type(s) application/json
"ContentSource Object"
string As uuid As uuid
id
Required

Content Source id

string
name
Required

Content Source name

string
description
Optional

Content Source description

string
typeId
Required

Content Source type

Possible values are : com.github, com.github.enterprise, com.gitlab, com.gitlab.enterprise, org.bitbucket,
string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
projectId
Required

Associated projects

object
config
Optional

config

string
orgId
Optional

Associated org

boolean
syncEnabled
Optional

Is Sync Enabled


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/content/api/sources/{id}