Use this data source to retrieve information about a GitHub resource through REST API.
data "github_rest_api" "example" {
endpoint = "repos/example_repo/git/refs/heads/main"
}
endpoint
- (Required) REST API endpoint to send the GET request to.id
- The GitHub API Request IDcode
- A response status code.status
- A response status string.headers
- A JSON string containing response headers.body
- A JSON string containing response body.