@pulumi/openstack 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,224 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Manages a V2 Neutron BGP Speaker resource within OpenStack.
6
+ *
7
+ * This resource allows you to configure a BGP speaker that can be associated with
8
+ * a BGP peer to exchange routing information.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as openstack from "@pulumi/openstack";
15
+ *
16
+ * const network1 = new openstack.networking.Network("network1", {name: "network1"});
17
+ * const peer1 = new openstack.networking.BgpPeerV2("peer_1", {
18
+ * name: "bgp_peer_1",
19
+ * peerIp: "192.0.2.10",
20
+ * remoteAs: 65001,
21
+ * authType: "md5",
22
+ * password: "supersecret",
23
+ * });
24
+ * const speaker1 = new openstack.networking.BgpSpeakerV2("speaker_1", {
25
+ * name: "bgp_speaker_1",
26
+ * ipVersion: 4,
27
+ * localAs: 65000,
28
+ * networks: [network1.id],
29
+ * peers: [peer1OpestackNetworkingBgpPeerV2.id],
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * BGP speakers can be imported using their ID:
36
+ *
37
+ * ```sh
38
+ * $ pulumi import openstack:networking/bgpSpeakerV2:BgpSpeakerV2 speaker_1 8a2ad402-b805-46bf-a60b-008573ca2844
39
+ * ```
40
+ */
41
+ export declare class BgpSpeakerV2 extends pulumi.CustomResource {
42
+ /**
43
+ * Get an existing BgpSpeakerV2 resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BgpSpeakerV2State, opts?: pulumi.CustomResourceOptions): BgpSpeakerV2;
52
+ /**
53
+ * Returns true if the given object is an instance of BgpSpeakerV2. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj: any): obj is BgpSpeakerV2;
57
+ /**
58
+ * A boolean value indicating
59
+ * whether to advertise floating IP host routes. Defaults to `true`.
60
+ */
61
+ readonly advertiseFloatingIpHostRoutes: pulumi.Output<boolean>;
62
+ /**
63
+ * A boolean value indicating whether to
64
+ * advertise tenant networks. Defaults to `true`.
65
+ */
66
+ readonly advertiseTenantNetworks: pulumi.Output<boolean>;
67
+ /**
68
+ * A list of dictionaries containing the `destination` and
69
+ * `nextHop` for each route advertised by the BGP speaker. This attribute is
70
+ * only populated after the BGP speaker has been created and has established BGP
71
+ * sessions with its peers.
72
+ */
73
+ readonly advertisedRoutes: pulumi.Output<outputs.networking.BgpSpeakerV2AdvertisedRoute[]>;
74
+ /**
75
+ * The IP version of the BGP speaker. Valid values are
76
+ * `4` or `6`. Defaults to `4`. Changing this creates a new BGP speaker.
77
+ */
78
+ readonly ipVersion: pulumi.Output<number | undefined>;
79
+ /**
80
+ * The local autonomous system number (ASN) for the BGP
81
+ * speaker. This is a mandatory field and must be specified. Changing this
82
+ * creates a new BGP speaker.
83
+ */
84
+ readonly localAs: pulumi.Output<number>;
85
+ /**
86
+ * A name for the BGP speaker.
87
+ */
88
+ readonly name: pulumi.Output<string>;
89
+ /**
90
+ * A list of network IDs to associate with the BGP speaker.
91
+ */
92
+ readonly networks: pulumi.Output<string[] | undefined>;
93
+ /**
94
+ * A list of BGP peer IDs to associate with the BGP speaker.
95
+ */
96
+ readonly peers: pulumi.Output<string[] | undefined>;
97
+ /**
98
+ * The region in which to obtain the V2 Networking client.
99
+ * A Networking client is needed to create a Neutron network. If omitted, the
100
+ * `region` argument of the provider is used. Changing this creates a new BGP
101
+ * speaker.
102
+ */
103
+ readonly region: pulumi.Output<string>;
104
+ /**
105
+ * The tenant/project ID. Required if admin privileges
106
+ * are used. Changing this creates a new BGP speaker.
107
+ */
108
+ readonly tenantId: pulumi.Output<string>;
109
+ /**
110
+ * Create a BgpSpeakerV2 resource with the given unique name, arguments, and options.
111
+ *
112
+ * @param name The _unique_ name of the resource.
113
+ * @param args The arguments to use to populate this resource's properties.
114
+ * @param opts A bag of options that control this resource's behavior.
115
+ */
116
+ constructor(name: string, args: BgpSpeakerV2Args, opts?: pulumi.CustomResourceOptions);
117
+ }
118
+ /**
119
+ * Input properties used for looking up and filtering BgpSpeakerV2 resources.
120
+ */
121
+ export interface BgpSpeakerV2State {
122
+ /**
123
+ * A boolean value indicating
124
+ * whether to advertise floating IP host routes. Defaults to `true`.
125
+ */
126
+ advertiseFloatingIpHostRoutes?: pulumi.Input<boolean>;
127
+ /**
128
+ * A boolean value indicating whether to
129
+ * advertise tenant networks. Defaults to `true`.
130
+ */
131
+ advertiseTenantNetworks?: pulumi.Input<boolean>;
132
+ /**
133
+ * A list of dictionaries containing the `destination` and
134
+ * `nextHop` for each route advertised by the BGP speaker. This attribute is
135
+ * only populated after the BGP speaker has been created and has established BGP
136
+ * sessions with its peers.
137
+ */
138
+ advertisedRoutes?: pulumi.Input<pulumi.Input<inputs.networking.BgpSpeakerV2AdvertisedRoute>[]>;
139
+ /**
140
+ * The IP version of the BGP speaker. Valid values are
141
+ * `4` or `6`. Defaults to `4`. Changing this creates a new BGP speaker.
142
+ */
143
+ ipVersion?: pulumi.Input<number>;
144
+ /**
145
+ * The local autonomous system number (ASN) for the BGP
146
+ * speaker. This is a mandatory field and must be specified. Changing this
147
+ * creates a new BGP speaker.
148
+ */
149
+ localAs?: pulumi.Input<number>;
150
+ /**
151
+ * A name for the BGP speaker.
152
+ */
153
+ name?: pulumi.Input<string>;
154
+ /**
155
+ * A list of network IDs to associate with the BGP speaker.
156
+ */
157
+ networks?: pulumi.Input<pulumi.Input<string>[]>;
158
+ /**
159
+ * A list of BGP peer IDs to associate with the BGP speaker.
160
+ */
161
+ peers?: pulumi.Input<pulumi.Input<string>[]>;
162
+ /**
163
+ * The region in which to obtain the V2 Networking client.
164
+ * A Networking client is needed to create a Neutron network. If omitted, the
165
+ * `region` argument of the provider is used. Changing this creates a new BGP
166
+ * speaker.
167
+ */
168
+ region?: pulumi.Input<string>;
169
+ /**
170
+ * The tenant/project ID. Required if admin privileges
171
+ * are used. Changing this creates a new BGP speaker.
172
+ */
173
+ tenantId?: pulumi.Input<string>;
174
+ }
175
+ /**
176
+ * The set of arguments for constructing a BgpSpeakerV2 resource.
177
+ */
178
+ export interface BgpSpeakerV2Args {
179
+ /**
180
+ * A boolean value indicating
181
+ * whether to advertise floating IP host routes. Defaults to `true`.
182
+ */
183
+ advertiseFloatingIpHostRoutes?: pulumi.Input<boolean>;
184
+ /**
185
+ * A boolean value indicating whether to
186
+ * advertise tenant networks. Defaults to `true`.
187
+ */
188
+ advertiseTenantNetworks?: pulumi.Input<boolean>;
189
+ /**
190
+ * The IP version of the BGP speaker. Valid values are
191
+ * `4` or `6`. Defaults to `4`. Changing this creates a new BGP speaker.
192
+ */
193
+ ipVersion?: pulumi.Input<number>;
194
+ /**
195
+ * The local autonomous system number (ASN) for the BGP
196
+ * speaker. This is a mandatory field and must be specified. Changing this
197
+ * creates a new BGP speaker.
198
+ */
199
+ localAs: pulumi.Input<number>;
200
+ /**
201
+ * A name for the BGP speaker.
202
+ */
203
+ name?: pulumi.Input<string>;
204
+ /**
205
+ * A list of network IDs to associate with the BGP speaker.
206
+ */
207
+ networks?: pulumi.Input<pulumi.Input<string>[]>;
208
+ /**
209
+ * A list of BGP peer IDs to associate with the BGP speaker.
210
+ */
211
+ peers?: pulumi.Input<pulumi.Input<string>[]>;
212
+ /**
213
+ * The region in which to obtain the V2 Networking client.
214
+ * A Networking client is needed to create a Neutron network. If omitted, the
215
+ * `region` argument of the provider is used. Changing this creates a new BGP
216
+ * speaker.
217
+ */
218
+ region?: pulumi.Input<string>;
219
+ /**
220
+ * The tenant/project ID. Required if admin privileges
221
+ * are used. Changing this creates a new BGP speaker.
222
+ */
223
+ tenantId?: pulumi.Input<string>;
224
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BgpSpeakerV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a V2 Neutron BGP Speaker resource within OpenStack.
10
+ *
11
+ * This resource allows you to configure a BGP speaker that can be associated with
12
+ * a BGP peer to exchange routing information.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as openstack from "@pulumi/openstack";
19
+ *
20
+ * const network1 = new openstack.networking.Network("network1", {name: "network1"});
21
+ * const peer1 = new openstack.networking.BgpPeerV2("peer_1", {
22
+ * name: "bgp_peer_1",
23
+ * peerIp: "192.0.2.10",
24
+ * remoteAs: 65001,
25
+ * authType: "md5",
26
+ * password: "supersecret",
27
+ * });
28
+ * const speaker1 = new openstack.networking.BgpSpeakerV2("speaker_1", {
29
+ * name: "bgp_speaker_1",
30
+ * ipVersion: 4,
31
+ * localAs: 65000,
32
+ * networks: [network1.id],
33
+ * peers: [peer1OpestackNetworkingBgpPeerV2.id],
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * BGP speakers can be imported using their ID:
40
+ *
41
+ * ```sh
42
+ * $ pulumi import openstack:networking/bgpSpeakerV2:BgpSpeakerV2 speaker_1 8a2ad402-b805-46bf-a60b-008573ca2844
43
+ * ```
44
+ */
45
+ class BgpSpeakerV2 extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing BgpSpeakerV2 resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name, id, state, opts) {
56
+ return new BgpSpeakerV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
+ }
58
+ /**
59
+ * Returns true if the given object is an instance of BgpSpeakerV2. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === BgpSpeakerV2.__pulumiType;
67
+ }
68
+ constructor(name, argsOrState, opts) {
69
+ let resourceInputs = {};
70
+ opts = opts || {};
71
+ if (opts.id) {
72
+ const state = argsOrState;
73
+ resourceInputs["advertiseFloatingIpHostRoutes"] = state ? state.advertiseFloatingIpHostRoutes : undefined;
74
+ resourceInputs["advertiseTenantNetworks"] = state ? state.advertiseTenantNetworks : undefined;
75
+ resourceInputs["advertisedRoutes"] = state ? state.advertisedRoutes : undefined;
76
+ resourceInputs["ipVersion"] = state ? state.ipVersion : undefined;
77
+ resourceInputs["localAs"] = state ? state.localAs : undefined;
78
+ resourceInputs["name"] = state ? state.name : undefined;
79
+ resourceInputs["networks"] = state ? state.networks : undefined;
80
+ resourceInputs["peers"] = state ? state.peers : undefined;
81
+ resourceInputs["region"] = state ? state.region : undefined;
82
+ resourceInputs["tenantId"] = state ? state.tenantId : undefined;
83
+ }
84
+ else {
85
+ const args = argsOrState;
86
+ if ((!args || args.localAs === undefined) && !opts.urn) {
87
+ throw new Error("Missing required property 'localAs'");
88
+ }
89
+ resourceInputs["advertiseFloatingIpHostRoutes"] = args ? args.advertiseFloatingIpHostRoutes : undefined;
90
+ resourceInputs["advertiseTenantNetworks"] = args ? args.advertiseTenantNetworks : undefined;
91
+ resourceInputs["ipVersion"] = args ? args.ipVersion : undefined;
92
+ resourceInputs["localAs"] = args ? args.localAs : undefined;
93
+ resourceInputs["name"] = args ? args.name : undefined;
94
+ resourceInputs["networks"] = args ? args.networks : undefined;
95
+ resourceInputs["peers"] = args ? args.peers : undefined;
96
+ resourceInputs["region"] = args ? args.region : undefined;
97
+ resourceInputs["tenantId"] = args ? args.tenantId : undefined;
98
+ resourceInputs["advertisedRoutes"] = undefined /*out*/;
99
+ }
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
+ super(BgpSpeakerV2.__pulumiType, name, resourceInputs, opts);
102
+ }
103
+ }
104
+ exports.BgpSpeakerV2 = BgpSpeakerV2;
105
+ /** @internal */
106
+ BgpSpeakerV2.__pulumiType = 'openstack:networking/bgpSpeakerV2:BgpSpeakerV2';
107
+ //# sourceMappingURL=bgpSpeakerV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bgpSpeakerV2.js","sourceRoot":"","sources":["../../networking/bgpSpeakerV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,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9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA1HL,oCA2HC;AA7GG,gBAAgB;AACO,yBAAY,GAAG,gDAAgD,CAAC"}
@@ -100,6 +100,10 @@ export interface GetRouterResult {
100
100
  readonly name?: string;
101
101
  readonly region?: string;
102
102
  readonly routerId?: string;
103
+ /**
104
+ * The list of static routes set on the router.
105
+ */
106
+ readonly routes: outputs.networking.GetRouterRoute[];
103
107
  readonly status?: string;
104
108
  readonly tags?: string[];
105
109
  readonly tenantId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getRouter.js","sourceRoot":"","sources":["../../networking/getRouter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAA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
2
+ /**
3
+ * Use this data source to get the ID of an available OpenStack network.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as openstack from "@pulumi/openstack";
10
+ *
11
+ * const network = openstack.networking.getSegmentV2({
12
+ * name: "tf_test_segment",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function getSegmentV2(args?: GetSegmentV2Args, opts?: pulumi.InvokeOptions): Promise<GetSegmentV2Result>;
17
+ /**
18
+ * A collection of arguments for invoking getSegmentV2.
19
+ */
20
+ export interface GetSegmentV2Args {
21
+ /**
22
+ * Human-readable description of the network segment.
23
+ */
24
+ description?: string;
25
+ /**
26
+ * The name of the network segment.
27
+ */
28
+ name?: string;
29
+ /**
30
+ * The ID of the network.
31
+ */
32
+ networkId?: string;
33
+ /**
34
+ * The type of the network, such as `vlan`, `vxlan`,
35
+ * `flat`, `gre`, `geneve`, or `local`.
36
+ */
37
+ networkType?: string;
38
+ /**
39
+ * The name of the physical network.
40
+ */
41
+ physicalNetwork?: string;
42
+ /**
43
+ * The region in which to obtain the V2 Neutron client.
44
+ * A Neutron client is needed to retrieve networks ids. If omitted, the
45
+ * `region` argument of the provider is used.
46
+ */
47
+ region?: string;
48
+ /**
49
+ * See Argument Reference above.
50
+ */
51
+ revisionNumber?: number;
52
+ /**
53
+ * The ID of the network segment
54
+ */
55
+ segmentId?: string;
56
+ /**
57
+ * The segmentation ID of the network segment.
58
+ */
59
+ segmentationId?: number;
60
+ }
61
+ /**
62
+ * A collection of values returned by getSegmentV2.
63
+ */
64
+ export interface GetSegmentV2Result {
65
+ /**
66
+ * The date and time when the network segment was created.
67
+ */
68
+ readonly createdAt: string;
69
+ /**
70
+ * See Argument Reference above.
71
+ */
72
+ readonly description: string;
73
+ /**
74
+ * The provider-assigned unique ID for this managed resource.
75
+ */
76
+ readonly id: string;
77
+ /**
78
+ * See Argument Reference above.
79
+ */
80
+ readonly name: string;
81
+ /**
82
+ * See Argument Reference above.
83
+ */
84
+ readonly networkId: string;
85
+ /**
86
+ * See Argument Reference above.
87
+ */
88
+ readonly networkType: string;
89
+ /**
90
+ * See Argument Reference above.
91
+ */
92
+ readonly physicalNetwork: string;
93
+ readonly region: string;
94
+ /**
95
+ * See Argument Reference above.
96
+ */
97
+ readonly revisionNumber: number;
98
+ /**
99
+ * See Argument Reference above.
100
+ */
101
+ readonly segmentId: string;
102
+ /**
103
+ * See Argument Reference above.
104
+ */
105
+ readonly segmentationId: number;
106
+ /**
107
+ * The date and time when the network segment was last updated.
108
+ */
109
+ readonly updatedAt: string;
110
+ }
111
+ /**
112
+ * Use this data source to get the ID of an available OpenStack network.
113
+ *
114
+ * ## Example Usage
115
+ *
116
+ * ```typescript
117
+ * import * as pulumi from "@pulumi/pulumi";
118
+ * import * as openstack from "@pulumi/openstack";
119
+ *
120
+ * const network = openstack.networking.getSegmentV2({
121
+ * name: "tf_test_segment",
122
+ * });
123
+ * ```
124
+ */
125
+ export declare function getSegmentV2Output(args?: GetSegmentV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSegmentV2Result>;
126
+ /**
127
+ * A collection of arguments for invoking getSegmentV2.
128
+ */
129
+ export interface GetSegmentV2OutputArgs {
130
+ /**
131
+ * Human-readable description of the network segment.
132
+ */
133
+ description?: pulumi.Input<string>;
134
+ /**
135
+ * The name of the network segment.
136
+ */
137
+ name?: pulumi.Input<string>;
138
+ /**
139
+ * The ID of the network.
140
+ */
141
+ networkId?: pulumi.Input<string>;
142
+ /**
143
+ * The type of the network, such as `vlan`, `vxlan`,
144
+ * `flat`, `gre`, `geneve`, or `local`.
145
+ */
146
+ networkType?: pulumi.Input<string>;
147
+ /**
148
+ * The name of the physical network.
149
+ */
150
+ physicalNetwork?: pulumi.Input<string>;
151
+ /**
152
+ * The region in which to obtain the V2 Neutron client.
153
+ * A Neutron client is needed to retrieve networks ids. If omitted, the
154
+ * `region` argument of the provider is used.
155
+ */
156
+ region?: pulumi.Input<string>;
157
+ /**
158
+ * See Argument Reference above.
159
+ */
160
+ revisionNumber?: pulumi.Input<number>;
161
+ /**
162
+ * The ID of the network segment
163
+ */
164
+ segmentId?: pulumi.Input<string>;
165
+ /**
166
+ * The segmentation ID of the network segment.
167
+ */
168
+ segmentationId?: pulumi.Input<number>;
169
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getSegmentV2Output = exports.getSegmentV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to get the ID of an available OpenStack network.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as openstack from "@pulumi/openstack";
16
+ *
17
+ * const network = openstack.networking.getSegmentV2({
18
+ * name: "tf_test_segment",
19
+ * });
20
+ * ```
21
+ */
22
+ function getSegmentV2(args, opts) {
23
+ args = args || {};
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
25
+ return pulumi.runtime.invoke("openstack:networking/getSegmentV2:getSegmentV2", {
26
+ "description": args.description,
27
+ "name": args.name,
28
+ "networkId": args.networkId,
29
+ "networkType": args.networkType,
30
+ "physicalNetwork": args.physicalNetwork,
31
+ "region": args.region,
32
+ "revisionNumber": args.revisionNumber,
33
+ "segmentId": args.segmentId,
34
+ "segmentationId": args.segmentationId,
35
+ }, opts);
36
+ }
37
+ exports.getSegmentV2 = getSegmentV2;
38
+ /**
39
+ * Use this data source to get the ID of an available OpenStack network.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as openstack from "@pulumi/openstack";
46
+ *
47
+ * const network = openstack.networking.getSegmentV2({
48
+ * name: "tf_test_segment",
49
+ * });
50
+ * ```
51
+ */
52
+ function getSegmentV2Output(args, opts) {
53
+ args = args || {};
54
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
55
+ return pulumi.runtime.invokeOutput("openstack:networking/getSegmentV2:getSegmentV2", {
56
+ "description": args.description,
57
+ "name": args.name,
58
+ "networkId": args.networkId,
59
+ "networkType": args.networkType,
60
+ "physicalNetwork": args.physicalNetwork,
61
+ "region": args.region,
62
+ "revisionNumber": args.revisionNumber,
63
+ "segmentId": args.segmentId,
64
+ "segmentationId": args.segmentationId,
65
+ }, opts);
66
+ }
67
+ exports.getSegmentV2Output = getSegmentV2Output;
68
+ //# sourceMappingURL=getSegmentV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSegmentV2.js","sourceRoot":"","sources":["../../networking/getSegmentV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,oCAcC;AAiGD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAAiC;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,gDAcC"}
@@ -4,6 +4,12 @@ export declare const AddressGroupV2: typeof import("./addressGroupV2").AddressGr
4
4
  export { AddressScopeArgs, AddressScopeState } from "./addressScope";
5
5
  export type AddressScope = import("./addressScope").AddressScope;
6
6
  export declare const AddressScope: typeof import("./addressScope").AddressScope;
7
+ export { BgpPeerV2Args, BgpPeerV2State } from "./bgpPeerV2";
8
+ export type BgpPeerV2 = import("./bgpPeerV2").BgpPeerV2;
9
+ export declare const BgpPeerV2: typeof import("./bgpPeerV2").BgpPeerV2;
10
+ export { BgpSpeakerV2Args, BgpSpeakerV2State } from "./bgpSpeakerV2";
11
+ export type BgpSpeakerV2 = import("./bgpSpeakerV2").BgpSpeakerV2;
12
+ export declare const BgpSpeakerV2: typeof import("./bgpSpeakerV2").BgpSpeakerV2;
7
13
  export { FloatingIpArgs, FloatingIpState } from "./floatingIp";
8
14
  export type FloatingIp = import("./floatingIp").FloatingIp;
9
15
  export declare const FloatingIp: typeof import("./floatingIp").FloatingIp;
@@ -46,6 +52,9 @@ export declare const getRouterOutput: typeof import("./getRouter").getRouterOutp
46
52
  export { GetSecGroupArgs, GetSecGroupResult, GetSecGroupOutputArgs } from "./getSecGroup";
47
53
  export declare const getSecGroup: typeof import("./getSecGroup").getSecGroup;
48
54
  export declare const getSecGroupOutput: typeof import("./getSecGroup").getSecGroupOutput;
55
+ export { GetSegmentV2Args, GetSegmentV2Result, GetSegmentV2OutputArgs } from "./getSegmentV2";
56
+ export declare const getSegmentV2: typeof import("./getSegmentV2").getSegmentV2;
57
+ export declare const getSegmentV2Output: typeof import("./getSegmentV2").getSegmentV2Output;
49
58
  export { GetSubnetArgs, GetSubnetResult, GetSubnetOutputArgs } from "./getSubnet";
50
59
  export declare const getSubnet: typeof import("./getSubnet").getSubnet;
51
60
  export declare const getSubnetOutput: typeof import("./getSubnet").getSubnetOutput;
@@ -97,12 +106,18 @@ export declare const RouterInterface: typeof import("./routerInterface").RouterI
97
106
  export { RouterRouteArgs, RouterRouteState } from "./routerRoute";
98
107
  export type RouterRoute = import("./routerRoute").RouterRoute;
99
108
  export declare const RouterRoute: typeof import("./routerRoute").RouterRoute;
109
+ export { RouterRoutesV2Args, RouterRoutesV2State } from "./routerRoutesV2";
110
+ export type RouterRoutesV2 = import("./routerRoutesV2").RouterRoutesV2;
111
+ export declare const RouterRoutesV2: typeof import("./routerRoutesV2").RouterRoutesV2;
100
112
  export { SecGroupArgs, SecGroupState } from "./secGroup";
101
113
  export type SecGroup = import("./secGroup").SecGroup;
102
114
  export declare const SecGroup: typeof import("./secGroup").SecGroup;
103
115
  export { SecGroupRuleArgs, SecGroupRuleState } from "./secGroupRule";
104
116
  export type SecGroupRule = import("./secGroupRule").SecGroupRule;
105
117
  export declare const SecGroupRule: typeof import("./secGroupRule").SecGroupRule;
118
+ export { SegmentV2Args, SegmentV2State } from "./segmentV2";
119
+ export type SegmentV2 = import("./segmentV2").SegmentV2;
120
+ export declare const SegmentV2: typeof import("./segmentV2").SegmentV2;
106
121
  export { SubnetArgs, SubnetState } from "./subnet";
107
122
  export type Subnet = import("./subnet").Subnet;
108
123
  export declare const Subnet: typeof import("./subnet").Subnet;