Data Source: oci_devops_repository_file_line
This data source provides details about a specific Repository File Line resource in Oracle Cloud Infrastructure Devops service.
Retrieve lines of a specified file. Supports starting line number and limit. This API will be deprecated on Wed, 29 Mar 2023 01:00:00 GMT as it does not get recognized when filePath has ‘/’. This will be replaced by “/repositories/{repositoryId}/file/lines”
Example Usage
data "oci_devops_repository_file_line" "test_repository_file_line" {
#Required
repository_id = oci_devops_repository.test_repository.id
revision = var.repository_file_line_revision
file_path = var.repository_file_line_file_path
#Optional
start_line_number = var.repository_file_line_start_line_number
}
Argument Reference
The following arguments are supported:
file_path
- (Required) A filter to return file contents of the specified paths.repository_id
- (Required) Unique repository identifier.revision
- (Required) Retrieve file lines from specific revision.start_line_number
- (Optional) Line number from where to start returning file lines.
Attributes Reference
The following attributes are exported:
lines
- The list of lines in the file.line_content
- The content of the line.line_number
- The line number.