Get Terraform Configuration Sources Using GET

Get Terraform Configuration Sources Using GET

Returns a paginated list of configuration sources configured as storage for Terraform configurations.

Request
URI
GET
https://{api_host}/blueprint/api/blueprint-integrations/terraform/get-configuration-sources
COPY
Query Parameters
integer
page
Optional
Constraints: minimum: 0 default: 0

Zero-based page index (0..N)

integer
size
Optional
Constraints: minimum: 1 default: 20

The size of the page to be returned

string of array
sort
Optional
Constraints: default: updatedAt,DESC

Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

string of array
projects
Required

A comma-separated list of project IDs. Results will be filtered so only configuration sources accessible from one or more of these projects will be returned.

string
search
Optional

A search parameter to search based on configuration source name or repository.

string
apiVersion
Optional

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


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns PageContentSource of type(s) application/json
{
    "content": [
        {
            "config": {
                "branch": "string",
                "contentType": "string",
                "integrationId": "string",
                "path": "string",
                "repository": "string",
                "requestScopeOrg": false
            },
            "description": "string",
            "id": "string",
            "integrationAccountName": "string",
            "isSyncEnabled": false,
            "label": "string",
            "name": "string",
            "projectId": "string",
            "typeId": "string"
        }
    ],
    "empty": false,
    "first": false,
    "last": false,
    "number": 0,
    "numberOfElements": 0,
    "pageable": {
        "offset": 0,
        "pageNumber": 0,
        "pageSize": 0,
        "paged": false,
        "sort": {
            "empty": false,
            "sorted": false,
            "unsorted": false
        },
        "unpaged": false
    },
    "size": 0,
    "sort": {
        "empty": false,
        "sorted": false,
        "unsorted": false
    },
    "totalElements": 0,
    "totalPages": 0
}
array of object
content
Optional

content

boolean
empty
Optional

empty

boolean
first
Optional

first

boolean
last
Optional

last

integer As int32 As int32
number
Optional

number

integer As int32 As int32
numberOfElements
Optional

numberOfElements

object
pageable
Optional

pageable

integer As int32 As int32
size
Optional

size

object
sort
Optional

sort

integer As int64 As int64
totalElements
Optional

totalElements

integer As int32 As int32
totalPages
Optional

totalPages


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/blueprint/api/blueprint-integrations/terraform/get-configuration-sources?projects=v