flexibleengine.NetworkingNetworkV2
Explore with Pulumi AI
Manages a V2 Neutron network resource within FlexibleEngine.
!> Warning: It has been deprecated, use flexibleengine.VpcSubnetV1
instead.
Create NetworkingNetworkV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkingNetworkV2(name: string, args?: NetworkingNetworkV2Args, opts?: CustomResourceOptions);
@overload
def NetworkingNetworkV2(resource_name: str,
args: Optional[NetworkingNetworkV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkingNetworkV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[str] = None,
name: Optional[str] = None,
networking_network_v2_id: Optional[str] = None,
region: Optional[str] = None,
segments: Optional[Sequence[NetworkingNetworkV2SegmentArgs]] = None,
shared: Optional[str] = None,
tenant_id: Optional[str] = None,
timeouts: Optional[NetworkingNetworkV2TimeoutsArgs] = None,
value_specs: Optional[Mapping[str, str]] = None)
func NewNetworkingNetworkV2(ctx *Context, name string, args *NetworkingNetworkV2Args, opts ...ResourceOption) (*NetworkingNetworkV2, error)
public NetworkingNetworkV2(string name, NetworkingNetworkV2Args? args = null, CustomResourceOptions? opts = null)
public NetworkingNetworkV2(String name, NetworkingNetworkV2Args args)
public NetworkingNetworkV2(String name, NetworkingNetworkV2Args args, CustomResourceOptions options)
type: flexibleengine:NetworkingNetworkV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkingNetworkV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkingNetworkV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkingNetworkV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkingNetworkV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkingNetworkV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkingNetworkV2Resource = new Flexibleengine.NetworkingNetworkV2("networkingNetworkV2Resource", new()
{
AdminStateUp = "string",
Name = "string",
NetworkingNetworkV2Id = "string",
Region = "string",
Segments = new[]
{
new Flexibleengine.Inputs.NetworkingNetworkV2SegmentArgs
{
NetworkType = "string",
PhysicalNetwork = "string",
SegmentationId = 0,
},
},
Shared = "string",
TenantId = "string",
Timeouts = new Flexibleengine.Inputs.NetworkingNetworkV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
ValueSpecs =
{
{ "string", "string" },
},
});
example, err := flexibleengine.NewNetworkingNetworkV2(ctx, "networkingNetworkV2Resource", &flexibleengine.NetworkingNetworkV2Args{
AdminStateUp: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkingNetworkV2Id: pulumi.String("string"),
Region: pulumi.String("string"),
Segments: flexibleengine.NetworkingNetworkV2SegmentArray{
&flexibleengine.NetworkingNetworkV2SegmentArgs{
NetworkType: pulumi.String("string"),
PhysicalNetwork: pulumi.String("string"),
SegmentationId: pulumi.Float64(0),
},
},
Shared: pulumi.String("string"),
TenantId: pulumi.String("string"),
Timeouts: &flexibleengine.NetworkingNetworkV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
ValueSpecs: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkingNetworkV2Resource = new NetworkingNetworkV2("networkingNetworkV2Resource", NetworkingNetworkV2Args.builder()
.adminStateUp("string")
.name("string")
.networkingNetworkV2Id("string")
.region("string")
.segments(NetworkingNetworkV2SegmentArgs.builder()
.networkType("string")
.physicalNetwork("string")
.segmentationId(0)
.build())
.shared("string")
.tenantId("string")
.timeouts(NetworkingNetworkV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.valueSpecs(Map.of("string", "string"))
.build());
networking_network_v2_resource = flexibleengine.NetworkingNetworkV2("networkingNetworkV2Resource",
admin_state_up="string",
name="string",
networking_network_v2_id="string",
region="string",
segments=[{
"network_type": "string",
"physical_network": "string",
"segmentation_id": 0,
}],
shared="string",
tenant_id="string",
timeouts={
"create": "string",
"delete": "string",
},
value_specs={
"string": "string",
})
const networkingNetworkV2Resource = new flexibleengine.NetworkingNetworkV2("networkingNetworkV2Resource", {
adminStateUp: "string",
name: "string",
networkingNetworkV2Id: "string",
region: "string",
segments: [{
networkType: "string",
physicalNetwork: "string",
segmentationId: 0,
}],
shared: "string",
tenantId: "string",
timeouts: {
create: "string",
"delete": "string",
},
valueSpecs: {
string: "string",
},
});
type: flexibleengine:NetworkingNetworkV2
properties:
adminStateUp: string
name: string
networkingNetworkV2Id: string
region: string
segments:
- networkType: string
physicalNetwork: string
segmentationId: 0
shared: string
tenantId: string
timeouts:
create: string
delete: string
valueSpecs:
string: string
NetworkingNetworkV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkingNetworkV2 resource accepts the following input properties:
- Admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- Name string
- The name of the network. Changing this updates the name of the existing network.
- Networking
Network stringV2Id - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - Segments
List<Networking
Network V2Segment> - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- Tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- Timeouts
Networking
Network V2Timeouts - Value
Specs Dictionary<string, string> - Map of additional options.
- Admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- Name string
- The name of the network. Changing this updates the name of the existing network.
- Networking
Network stringV2Id - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - Segments
[]Networking
Network V2Segment Args - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- Tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- Timeouts
Networking
Network V2Timeouts Args - Value
Specs map[string]string - Map of additional options.
- admin
State StringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name String
- The name of the network. Changing this updates the name of the existing network.
- networking
Network StringV2Id - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
List<Networking
Network V2Segment> - An array of one or more provider segment objects.
- String
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id String - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts - value
Specs Map<String,String> - Map of additional options.
- admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name string
- The name of the network. Changing this updates the name of the existing network.
- networking
Network stringV2Id - region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
Networking
Network V2Segment[] - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts - value
Specs {[key: string]: string} - Map of additional options.
- admin_
state_ strup - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name str
- The name of the network. Changing this updates the name of the existing network.
- networking_
network_ strv2_ id - region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
Sequence[Networking
Network V2Segment Args] - An array of one or more provider segment objects.
- str
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant_
id str - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts Args - value_
specs Mapping[str, str] - Map of additional options.
- admin
State StringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name String
- The name of the network. Changing this updates the name of the existing network.
- networking
Network StringV2Id - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments List<Property Map>
- An array of one or more provider segment objects.
- String
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id String - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts Property Map
- value
Specs Map<String> - Map of additional options.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkingNetworkV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NetworkingNetworkV2 Resource
Get an existing NetworkingNetworkV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkingNetworkV2State, opts?: CustomResourceOptions): NetworkingNetworkV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[str] = None,
name: Optional[str] = None,
networking_network_v2_id: Optional[str] = None,
region: Optional[str] = None,
segments: Optional[Sequence[NetworkingNetworkV2SegmentArgs]] = None,
shared: Optional[str] = None,
tenant_id: Optional[str] = None,
timeouts: Optional[NetworkingNetworkV2TimeoutsArgs] = None,
value_specs: Optional[Mapping[str, str]] = None) -> NetworkingNetworkV2
func GetNetworkingNetworkV2(ctx *Context, name string, id IDInput, state *NetworkingNetworkV2State, opts ...ResourceOption) (*NetworkingNetworkV2, error)
public static NetworkingNetworkV2 Get(string name, Input<string> id, NetworkingNetworkV2State? state, CustomResourceOptions? opts = null)
public static NetworkingNetworkV2 get(String name, Output<String> id, NetworkingNetworkV2State state, CustomResourceOptions options)
resources: _: type: flexibleengine:NetworkingNetworkV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- Name string
- The name of the network. Changing this updates the name of the existing network.
- Networking
Network stringV2Id - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - Segments
List<Networking
Network V2Segment> - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- Tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- Timeouts
Networking
Network V2Timeouts - Value
Specs Dictionary<string, string> - Map of additional options.
- Admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- Name string
- The name of the network. Changing this updates the name of the existing network.
- Networking
Network stringV2Id - Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - Segments
[]Networking
Network V2Segment Args - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- Tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- Timeouts
Networking
Network V2Timeouts Args - Value
Specs map[string]string - Map of additional options.
- admin
State StringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name String
- The name of the network. Changing this updates the name of the existing network.
- networking
Network StringV2Id - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
List<Networking
Network V2Segment> - An array of one or more provider segment objects.
- String
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id String - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts - value
Specs Map<String,String> - Map of additional options.
- admin
State stringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name string
- The name of the network. Changing this updates the name of the existing network.
- networking
Network stringV2Id - region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
Networking
Network V2Segment[] - An array of one or more provider segment objects.
- string
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id string - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts - value
Specs {[key: string]: string} - Map of additional options.
- admin_
state_ strup - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name str
- The name of the network. Changing this updates the name of the existing network.
- networking_
network_ strv2_ id - region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments
Sequence[Networking
Network V2Segment Args] - An array of one or more provider segment objects.
- str
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant_
id str - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts
Networking
Network V2Timeouts Args - value_
specs Mapping[str, str] - Map of additional options.
- admin
State StringUp - The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
- name String
- The name of the network. Changing this updates the name of the existing network.
- networking
Network StringV2Id - region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron network. If omitted, the
region
argument of the provider is used. Changing this creates a new network. - segments List<Property Map>
- An array of one or more provider segment objects.
- String
- Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabalities of the existing network.
- tenant
Id String - The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
- timeouts Property Map
- value
Specs Map<String> - Map of additional options.
Supporting Types
NetworkingNetworkV2Segment, NetworkingNetworkV2SegmentArgs
- Network
Type string - The type of physical network.
- Physical
Network string - The physical network where this network is implemented.
- Segmentation
Id double - An isolated segment on the physical network.
- Network
Type string - The type of physical network.
- Physical
Network string - The physical network where this network is implemented.
- Segmentation
Id float64 - An isolated segment on the physical network.
- network
Type String - The type of physical network.
- physical
Network String - The physical network where this network is implemented.
- segmentation
Id Double - An isolated segment on the physical network.
- network
Type string - The type of physical network.
- physical
Network string - The physical network where this network is implemented.
- segmentation
Id number - An isolated segment on the physical network.
- network_
type str - The type of physical network.
- physical_
network str - The physical network where this network is implemented.
- segmentation_
id float - An isolated segment on the physical network.
- network
Type String - The type of physical network.
- physical
Network String - The physical network where this network is implemented.
- segmentation
Id Number - An isolated segment on the physical network.
NetworkingNetworkV2Timeouts, NetworkingNetworkV2TimeoutsArgs
Import
Networks can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/networkingNetworkV2:NetworkingNetworkV2 network_1 d90ce693-5ccf-4136-a0ed-152ce412b6b9
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.