45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "artifactapi_virtual Data Source - artifactapi"
|
|
subcategory: ""
|
|
description: |-
|
|
Read an existing ArtifactAPI virtual repository.
|
|
---
|
|
|
|
# artifactapi_virtual (Data Source)
|
|
|
|
Read an existing ArtifactAPI virtual repository.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
# Read the configuration of an existing virtual repository by name.
|
|
# Returns the package type, description, and ordered member list.
|
|
data "artifactapi_virtual" "helm" {
|
|
name = "helm"
|
|
}
|
|
|
|
output "helm_members" {
|
|
value = data.artifactapi_virtual.helm.members
|
|
}
|
|
|
|
output "helm_package_type" {
|
|
value = data.artifactapi_virtual.helm.package_type
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `name` (String) Virtual repository name.
|
|
|
|
### Read-Only
|
|
|
|
- `description` (String) Human-readable description.
|
|
- `managed_by` (String) What manages the repository (e.g. terraform).
|
|
- `members` (List of String) Ordered list of member remote names.
|
|
- `package_type` (String) Package type of the virtual repository.
|
|
- `parallel_fetch` (Boolean) Whether member index files are fetched concurrently.
|