Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: abarreiro <abarreiro@vmware.com>
  • Loading branch information
adambarreiro committed Oct 14, 2024
1 parent e42b373 commit ff1a8c7
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
39 changes: 39 additions & 0 deletions website/docs/d/tm_content_library.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: "vcd"
page_title: "VMware Cloud Foundation Tenant Manager: vcd_tm_content_library"
sidebar_current: "docs-vcd-data-source-tm-content-library"
description: |-
Provides a VMware Cloud Foundation Tenant Manager Content Library data source. This can be used to read Content Libraries.
---

# vcd\_independent\_disk

Provides a VMware Cloud Foundation Tenant Manager Content Library data source. This can be used to read Content Libraries.

This data source is exclusive to **VMware Cloud Foundation Tenant Manager**. Supported in provider *v4.0+*

## Example Usage

```hcl
data "vcd_tm_content_library" "cl" {
name = "My Library"
}
output "is_shared" {
value = data.vcd_tm_content_library.cl.is_shared
}
output "owner_org" {
value = data.vcd_tm_content_library.cl.owner_org_id
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the Content Library to read

## Attribute reference

All arguments and attributes defined in [the resource](/providers/vmware/vcd/latest/docs/resources/tm_content_library) are supported
as read-only (Computed) values.
42 changes: 42 additions & 0 deletions website/docs/d/tm_region_storage_policy.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: "vcd"
page_title: "VMware Cloud Foundation Tenant Manager: vcd_tm_region_storage_policy"
sidebar_current: "docs-vcd-data-source-tm-region-storage-policy"
description: |-
Provides a VMware Cloud Foundation Tenant Manager Region Storage Policy data source. This can be used to read Content Libraries.
---

# vcd\_independent\_disk

Provides a VMware Cloud Foundation Tenant Manager Region Storage Policy data source. This can be used to read Region Storage Policies.

This data source is exclusive to **VMware Cloud Foundation Tenant Manager**. Supported in provider *v4.0+*

## Example Usage

```hcl
data "vcd_tm_region_storage_policy" "sp" {
name = "vSAN Default Storage Policy"
}
resource "vcd_tm_content_library" "cl" {
name = "My Library"
description = "A simple library"
storage_policy_ids = [
data.vcd_tm_region_storage_policy.sp.id
]
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the Region Storage Policy to read

## Attribute reference

// TODO: TM (Resource is not implemented yet)

All arguments and attributes defined in [the resource](/providers/vmware/vcd/latest/docs/resources/tm_region_storage_policy) are supported
as read-only (Computed) values.
2 changes: 1 addition & 1 deletion website/docs/r/tm_content_library.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "vcd_tm_content_library" "cl" {

## Example Usage for a Tenant Content Library

TODO: TM
// TODO: TM (Tenant support is not implemented yet)

## Argument Reference

Expand Down

0 comments on commit ff1a8c7

Please sign in to comment.