Skip to content

Commit 5657cdf

Browse files
Cyrus Hwangsagarp337
authored andcommitted
Added - Support for Organizations
1 parent b2ab7c9 commit 5657cdf

File tree

81 files changed

+8935
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+8935
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "assigned_subscription_compartment_id" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "assigned_subscription_id" {
18+
19+
}
20+
21+
variable "entity_version" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.assigned_subscription_compartment_id
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_assigned_subscription" "test_assigned_subscription" {
33+
assigned_subscription_id = var.assigned_subscription_id
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_assigned_subscriptions" "test_assigned_subscriptions" {
37+
compartment_id = var.assigned_subscription_compartment_id
38+
entity_version = var.entity_version
39+
subscription_id = var.assigned_subscription_id
40+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "assigned_subscription_compartment_id" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "assigned_subscription_id" {
18+
19+
}
20+
21+
provider "oci" {
22+
tenancy_ocid = var.assigned_subscription_compartment_id
23+
auth = var.auth
24+
config_file_profile = var.config_file_profile
25+
region = var.region
26+
}
27+
28+
data "oci_tenantmanagercontrolplane_assigned_subscription_line_items" "test_assigned_subscription_line_items" {
29+
assigned_subscription_id = var.assigned_subscription_id
30+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "compartment_id" {
18+
19+
}
20+
21+
variable "domain_id" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.tenancy_ocid
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_domain" "test_assigned_domain" {
33+
domain_id = var.domain_id
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_domains" "test_assigned_domains" {
37+
compartment_id = var.compartment_id
38+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "compartment_ocid" {
18+
19+
}
20+
21+
variable "domain_id" {
22+
23+
}
24+
25+
variable "domain_governance_id" {
26+
27+
}
28+
29+
provider "oci" {
30+
tenancy_ocid = var.tenancy_ocid
31+
auth = var.auth
32+
config_file_profile = var.config_file_profile
33+
region = var.region
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_domain_governances" "test_domain_governances" {
37+
domain_id = var.domain_id
38+
compartment_id = var.compartment_ocid
39+
}
40+
41+
data "oci_tenantmanagercontrolplane_domain_governance" "test_domain_governance" {
42+
domain_governance_id = var.domain_governance_id
43+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "link_id" {
18+
19+
}
20+
21+
variable "child_tenancy_id" {
22+
23+
}
24+
25+
variable "parent_tenancy_id" {
26+
27+
}
28+
29+
variable "state" {
30+
31+
}
32+
33+
provider "oci" {
34+
tenancy_ocid = var.tenancy_ocid
35+
auth = var.auth
36+
config_file_profile = var.config_file_profile
37+
region = var.region
38+
}
39+
40+
data "oci_tenantmanagercontrolplane_link" "test_link" {
41+
link_id = var.link_id
42+
}
43+
44+
data "oci_tenantmanagercontrolplane_links" "test_links" {
45+
child_tenancy_id = var.child_tenancy_id
46+
parent_tenancy_id = var.parent_tenancy_id
47+
state = var.state
48+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "organization_id" {
18+
19+
}
20+
21+
variable "compartment_id" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.tenancy_ocid
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_organization" "test_organization" {
33+
organization_id = var.organization_id
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_organizations" "test_organizations" {
37+
compartment_id = var.compartment_id
38+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "organization_id" {
18+
19+
}
20+
21+
variable "tenancy_id" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.tenancy_ocid
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_organization_tenancy" "test_organization_tenancy" {
33+
organization_id = var.organization_id
34+
tenancy_id = var.tenancy_id
35+
}
36+
37+
data "oci_tenantmanagercontrolplane_organization_tenancies" "test_organization_tenancies" {
38+
organization_id = var.organization_id
39+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "recipient_tenancy_id" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "recipient_invitation_id" {
18+
19+
}
20+
21+
variable "recipient_invitation_compartment_id" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.recipient_tenancy_id
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_recipient_invitation" "recipient_invitation" {
33+
recipient_invitation_id = var.recipient_invitation_id
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_recipient_invitations" "recipient_invitations" {
37+
compartment_id = var.recipient_invitation_compartment_id
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "sender_tenancy_id" {
4+
}
5+
6+
variable "auth" {
7+
8+
}
9+
10+
variable "config_file_profile" {
11+
12+
}
13+
14+
variable "region" {
15+
}
16+
17+
variable "sender_invitation_id" {
18+
19+
}
20+
21+
variable "sender_invitation_compartment_id" {
22+
23+
}
24+
25+
provider "oci" {
26+
tenancy_ocid = var.sender_tenancy_id
27+
auth = var.auth
28+
config_file_profile = var.config_file_profile
29+
region = var.region
30+
}
31+
32+
data "oci_tenantmanagercontrolplane_sender_invitation" "sender_invitation" {
33+
sender_invitation_id = var.sender_invitation_id
34+
}
35+
36+
data "oci_tenantmanagercontrolplane_sender_invitations" "sender_invitations" {
37+
compartment_id = var.sender_invitation_compartment_id
38+
}

0 commit comments

Comments
 (0)