Skip to content

Commit 2eea8a4

Browse files
committed
[Doc] Add docs and releasenote
1 parent c039f4a commit 2eea8a4

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

docs/data-sources/swr_domain_v2.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
subcategory: "Software Repository for Container (SWR)"
3+
layout: "opentelekomcloud"
4+
page_title: "OpenTelekomCloud: opentelekomcloud_swr_domain_v2"
5+
sidebar_current: "docs-opentelekomcloud-datasource-swr-domain-v2"
6+
description: |-
7+
Get details of an SWR Domain resource within OpenTelekomCloud.
8+
---
9+
10+
Up-to-date reference of API arguments for SWR domain you can get at
11+
[documentation portal](https://docs.otc.t-systems.com/software-repository-container/api-ref/api)
12+
13+
# opentelekomcloud_swr_domain_v2
14+
15+
Get details of SWR image sharing domain resource within Open Telekom Cloud.
16+
17+
## Example Usage
18+
19+
```hcl
20+
variable "org_name" {}
21+
variable "repo_name" {}
22+
variable "access_domain" {}
23+
24+
data opentelekomcloud_swr_domain_v2 domain_1 {
25+
organization = var.org_name
26+
repository = var.repo_name
27+
access_domain = var.access_domain
28+
}
29+
```
30+
31+
## Argument Reference
32+
33+
The following arguments are supported:
34+
35+
* `organization` - (Required) The name of the repository organization.
36+
37+
* `repository` - (Required) The name of the repository.
38+
39+
* `access_domain` - (Required) The name of the domain for image sharing.
40+
41+
-> `access_domain` should be an existing OTC domain.
42+
43+
## Attributes Reference
44+
45+
In addition to all arguments above, the following attributes are exported:
46+
47+
* `permission` - Permission to be granted.
48+
49+
* `deadline` - End date of image sharing (UTC).
50+
51+
* `description` - Specifies SWR domain description.
52+
53+
* `creator_id` - Username ID of the domain creator.
54+
55+
* `creator_name` - Username of the domain creator.
56+
57+
* `created` - Indicates the creation time.
58+
59+
* `updated` - Indicates the domain when was last updated.
60+
61+
* `status` - Indicates the domain is valid (`true`) or expired (`false`).
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
subcategory: "Software Repository for Container (SWR)"
3+
layout: "opentelekomcloud"
4+
page_title: "OpenTelekomCloud: opentelekomcloud_swr_domains_v2"
5+
sidebar_current: "docs-opentelekomcloud-datasource-swr-domains-v2"
6+
description: |-
7+
Get list of SWR Domains within OpenTelekomCloud.
8+
---
9+
10+
Up-to-date reference of API arguments for SWR domain you can get at
11+
[documentation portal](https://docs.otc.t-systems.com/software-repository-container/api-ref/api)
12+
13+
# opentelekomcloud_swr_domains_v2
14+
15+
Get list of SWR image sharing domains within Open Telekom Cloud.
16+
17+
## Example Usage
18+
19+
```hcl
20+
variable "org_name" {}
21+
variable "repo_name" {}
22+
23+
data opentelekomcloud_swr_domains_v2 domains {
24+
organization = var.org_name
25+
repository = var.repo_name
26+
}
27+
```
28+
29+
## Argument Reference
30+
31+
The following arguments are supported:
32+
33+
* `organization` - (Required) The name of the repository organization.
34+
35+
* `repository` - (Required) The name of the repository.
36+
37+
## Attributes Reference
38+
39+
In addition to all arguments above, the following attributes are exported:
40+
41+
* `access_domains` - The list of the access domains. The structure is documented below:
42+
* `access_domain` - (Required) The name of the domain for image sharing.
43+
* `permission` - Permission to be granted.
44+
* `deadline` - End date of image sharing (UTC).
45+
* `description` - Specifies SWR domain description.
46+
* `creator_id` - Username ID of the domain creator.
47+
* `creator_name` - Username of the domain creator.
48+
* `created` - Indicates the creation time.
49+
* `updated` - Indicates the domain when was last updated.
50+
* `status` - Indicates the domain is valid (`true`) or expired (`false`).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
**[SWR]** Add new data source ``datasource/opentelekomcloud_swr_domain_v2`` (`#3321 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/3321>`_).
5+
- |
6+
**[SWR]** Add new data source ``datasource/opentelekomcloud_swr_domains_v2`` (`#3321 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/3321>`_).

0 commit comments

Comments
 (0)