generated from pulumi/pulumi-tf-provider-boilerplate
/
getOperationsInsightsPrivateEndpoints.go
203 lines (179 loc) · 10.2 KB
/
getOperationsInsightsPrivateEndpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package opsi
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides the list of Operations Insights Private Endpoints in Oracle Cloud Infrastructure Opsi service.
//
// Gets a list of Operation Insights private endpoints.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Opsi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Opsi.GetOperationsInsightsPrivateEndpoints(ctx, &opsi.GetOperationsInsightsPrivateEndpointsArgs{
// CompartmentId: pulumi.StringRef(compartmentId),
// CompartmentIdInSubtree: pulumi.BoolRef(operationsInsightsPrivateEndpointCompartmentIdInSubtree),
// DisplayName: pulumi.StringRef(operationsInsightsPrivateEndpointDisplayName),
// IsUsedForRacDbs: pulumi.BoolRef(operationsInsightsPrivateEndpointIsUsedForRacDbs),
// OpsiPrivateEndpointId: pulumi.StringRef(testPrivateEndpoint.Id),
// States: operationsInsightsPrivateEndpointState,
// VcnId: pulumi.StringRef(testVcn.Id),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetOperationsInsightsPrivateEndpoints(ctx *pulumi.Context, args *GetOperationsInsightsPrivateEndpointsArgs, opts ...pulumi.InvokeOption) (*GetOperationsInsightsPrivateEndpointsResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetOperationsInsightsPrivateEndpointsResult
err := ctx.Invoke("oci:Opsi/getOperationsInsightsPrivateEndpoints:getOperationsInsightsPrivateEndpoints", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getOperationsInsightsPrivateEndpoints.
type GetOperationsInsightsPrivateEndpointsArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId *string `pulumi:"compartmentId"`
// A flag to search all resources within a given compartment and all sub-compartments.
CompartmentIdInSubtree *bool `pulumi:"compartmentIdInSubtree"`
// A filter to return only resources that match the entire display name.
DisplayName *string `pulumi:"displayName"`
Filters []GetOperationsInsightsPrivateEndpointsFilter `pulumi:"filters"`
// The option to filter OPSI private endpoints that can used for RAC. Should be used along with vcnId query parameter.
IsUsedForRacDbs *bool `pulumi:"isUsedForRacDbs"`
// Unique Operations Insights PrivateEndpoint identifier
OpsiPrivateEndpointId *string `pulumi:"opsiPrivateEndpointId"`
// Lifecycle states
States []string `pulumi:"states"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN.
VcnId *string `pulumi:"vcnId"`
}
// A collection of values returned by getOperationsInsightsPrivateEndpoints.
type GetOperationsInsightsPrivateEndpointsResult struct {
// The compartment OCID of the Private service accessed database.
CompartmentId *string `pulumi:"compartmentId"`
CompartmentIdInSubtree *bool `pulumi:"compartmentIdInSubtree"`
// The display name of the private endpoint.
DisplayName *string `pulumi:"displayName"`
Filters []GetOperationsInsightsPrivateEndpointsFilter `pulumi:"filters"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The flag is to identify if private endpoint is used for rac database or not
IsUsedForRacDbs *bool `pulumi:"isUsedForRacDbs"`
// The list of operations_insights_private_endpoint_collection.
OperationsInsightsPrivateEndpointCollections []GetOperationsInsightsPrivateEndpointsOperationsInsightsPrivateEndpointCollection `pulumi:"operationsInsightsPrivateEndpointCollections"`
OpsiPrivateEndpointId *string `pulumi:"opsiPrivateEndpointId"`
// The current state of the private endpoint.
States []string `pulumi:"states"`
// The OCID of the VCN.
VcnId *string `pulumi:"vcnId"`
}
func GetOperationsInsightsPrivateEndpointsOutput(ctx *pulumi.Context, args GetOperationsInsightsPrivateEndpointsOutputArgs, opts ...pulumi.InvokeOption) GetOperationsInsightsPrivateEndpointsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetOperationsInsightsPrivateEndpointsResult, error) {
args := v.(GetOperationsInsightsPrivateEndpointsArgs)
r, err := GetOperationsInsightsPrivateEndpoints(ctx, &args, opts...)
var s GetOperationsInsightsPrivateEndpointsResult
if r != nil {
s = *r
}
return s, err
}).(GetOperationsInsightsPrivateEndpointsResultOutput)
}
// A collection of arguments for invoking getOperationsInsightsPrivateEndpoints.
type GetOperationsInsightsPrivateEndpointsOutputArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId pulumi.StringPtrInput `pulumi:"compartmentId"`
// A flag to search all resources within a given compartment and all sub-compartments.
CompartmentIdInSubtree pulumi.BoolPtrInput `pulumi:"compartmentIdInSubtree"`
// A filter to return only resources that match the entire display name.
DisplayName pulumi.StringPtrInput `pulumi:"displayName"`
Filters GetOperationsInsightsPrivateEndpointsFilterArrayInput `pulumi:"filters"`
// The option to filter OPSI private endpoints that can used for RAC. Should be used along with vcnId query parameter.
IsUsedForRacDbs pulumi.BoolPtrInput `pulumi:"isUsedForRacDbs"`
// Unique Operations Insights PrivateEndpoint identifier
OpsiPrivateEndpointId pulumi.StringPtrInput `pulumi:"opsiPrivateEndpointId"`
// Lifecycle states
States pulumi.StringArrayInput `pulumi:"states"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN.
VcnId pulumi.StringPtrInput `pulumi:"vcnId"`
}
func (GetOperationsInsightsPrivateEndpointsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetOperationsInsightsPrivateEndpointsArgs)(nil)).Elem()
}
// A collection of values returned by getOperationsInsightsPrivateEndpoints.
type GetOperationsInsightsPrivateEndpointsResultOutput struct{ *pulumi.OutputState }
func (GetOperationsInsightsPrivateEndpointsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetOperationsInsightsPrivateEndpointsResult)(nil)).Elem()
}
func (o GetOperationsInsightsPrivateEndpointsResultOutput) ToGetOperationsInsightsPrivateEndpointsResultOutput() GetOperationsInsightsPrivateEndpointsResultOutput {
return o
}
func (o GetOperationsInsightsPrivateEndpointsResultOutput) ToGetOperationsInsightsPrivateEndpointsResultOutputWithContext(ctx context.Context) GetOperationsInsightsPrivateEndpointsResultOutput {
return o
}
// The compartment OCID of the Private service accessed database.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) CompartmentId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *string { return v.CompartmentId }).(pulumi.StringPtrOutput)
}
func (o GetOperationsInsightsPrivateEndpointsResultOutput) CompartmentIdInSubtree() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *bool { return v.CompartmentIdInSubtree }).(pulumi.BoolPtrOutput)
}
// The display name of the private endpoint.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) DisplayName() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *string { return v.DisplayName }).(pulumi.StringPtrOutput)
}
func (o GetOperationsInsightsPrivateEndpointsResultOutput) Filters() GetOperationsInsightsPrivateEndpointsFilterArrayOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) []GetOperationsInsightsPrivateEndpointsFilter {
return v.Filters
}).(GetOperationsInsightsPrivateEndpointsFilterArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) string { return v.Id }).(pulumi.StringOutput)
}
// The flag is to identify if private endpoint is used for rac database or not
func (o GetOperationsInsightsPrivateEndpointsResultOutput) IsUsedForRacDbs() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *bool { return v.IsUsedForRacDbs }).(pulumi.BoolPtrOutput)
}
// The list of operations_insights_private_endpoint_collection.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) OperationsInsightsPrivateEndpointCollections() GetOperationsInsightsPrivateEndpointsOperationsInsightsPrivateEndpointCollectionArrayOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) []GetOperationsInsightsPrivateEndpointsOperationsInsightsPrivateEndpointCollection {
return v.OperationsInsightsPrivateEndpointCollections
}).(GetOperationsInsightsPrivateEndpointsOperationsInsightsPrivateEndpointCollectionArrayOutput)
}
func (o GetOperationsInsightsPrivateEndpointsResultOutput) OpsiPrivateEndpointId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *string { return v.OpsiPrivateEndpointId }).(pulumi.StringPtrOutput)
}
// The current state of the private endpoint.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) States() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) []string { return v.States }).(pulumi.StringArrayOutput)
}
// The OCID of the VCN.
func (o GetOperationsInsightsPrivateEndpointsResultOutput) VcnId() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOperationsInsightsPrivateEndpointsResult) *string { return v.VcnId }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(GetOperationsInsightsPrivateEndpointsResultOutput{})
}