ovh.Dedicated.ServerNetworking
Explore with Pulumi AI
Create ServerNetworking Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerNetworking(name: string, args: ServerNetworkingArgs, opts?: CustomResourceOptions);
@overload
def ServerNetworking(resource_name: str,
args: ServerNetworkingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerNetworking(resource_name: str,
opts: Optional[ResourceOptions] = None,
interfaces: Optional[Sequence[_dedicated.ServerNetworkingInterfaceArgs]] = None,
service_name: Optional[str] = None)
func NewServerNetworking(ctx *Context, name string, args ServerNetworkingArgs, opts ...ResourceOption) (*ServerNetworking, error)
public ServerNetworking(string name, ServerNetworkingArgs args, CustomResourceOptions? opts = null)
public ServerNetworking(String name, ServerNetworkingArgs args)
public ServerNetworking(String name, ServerNetworkingArgs args, CustomResourceOptions options)
type: ovh:Dedicated:ServerNetworking
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 ServerNetworkingArgs
- 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 ServerNetworkingArgs
- 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 ServerNetworkingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerNetworkingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerNetworkingArgs
- 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 serverNetworkingResource = new Ovh.Dedicated.ServerNetworking("serverNetworkingResource", new()
{
Interfaces = new[]
{
new Ovh.Dedicated.Inputs.ServerNetworkingInterfaceArgs
{
Macs = new[]
{
"string",
},
Type = "string",
},
},
ServiceName = "string",
});
example, err := Dedicated.NewServerNetworking(ctx, "serverNetworkingResource", &Dedicated.ServerNetworkingArgs{
Interfaces: dedicated.ServerNetworkingInterfaceArray{
&dedicated.ServerNetworkingInterfaceArgs{
Macs: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
ServiceName: pulumi.String("string"),
})
var serverNetworkingResource = new ServerNetworking("serverNetworkingResource", ServerNetworkingArgs.builder()
.interfaces(ServerNetworkingInterfaceArgs.builder()
.macs("string")
.type("string")
.build())
.serviceName("string")
.build());
server_networking_resource = ovh.dedicated.ServerNetworking("serverNetworkingResource",
interfaces=[{
"macs": ["string"],
"type": "string",
}],
service_name="string")
const serverNetworkingResource = new ovh.dedicated.ServerNetworking("serverNetworkingResource", {
interfaces: [{
macs: ["string"],
type: "string",
}],
serviceName: "string",
});
type: ovh:Dedicated:ServerNetworking
properties:
interfaces:
- macs:
- string
type: string
serviceName: string
ServerNetworking 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 ServerNetworking resource accepts the following input properties:
- Interfaces
List<Server
Networking Interface> - Interface or interfaces aggregation.
- Service
Name string - The internal name of your dedicated server.
- Interfaces
[]Server
Networking Interface Args - Interface or interfaces aggregation.
- Service
Name string - The internal name of your dedicated server.
- interfaces
List<Server
Networking Interface> - Interface or interfaces aggregation.
- service
Name String - The internal name of your dedicated server.
- interfaces
Server
Networking Interface[] - Interface or interfaces aggregation.
- service
Name string - The internal name of your dedicated server.
- interfaces
Sequence[dedicated.
Server Networking Interface Args] - Interface or interfaces aggregation.
- service_
name str - The internal name of your dedicated server.
- interfaces List<Property Map>
- Interface or interfaces aggregation.
- service
Name String - The internal name of your dedicated server.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerNetworking resource produces the following output properties:
- Description string
- Operation description
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Operation status
- Description string
- Operation description
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Operation status
- description String
- Operation description
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Operation status
- description string
- Operation description
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Operation status
- description str
- Operation description
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Operation status
- description String
- Operation description
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Operation status
Look up Existing ServerNetworking Resource
Get an existing ServerNetworking 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?: ServerNetworkingState, opts?: CustomResourceOptions): ServerNetworking
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
interfaces: Optional[Sequence[_dedicated.ServerNetworkingInterfaceArgs]] = None,
service_name: Optional[str] = None,
status: Optional[str] = None) -> ServerNetworking
func GetServerNetworking(ctx *Context, name string, id IDInput, state *ServerNetworkingState, opts ...ResourceOption) (*ServerNetworking, error)
public static ServerNetworking Get(string name, Input<string> id, ServerNetworkingState? state, CustomResourceOptions? opts = null)
public static ServerNetworking get(String name, Output<String> id, ServerNetworkingState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Operation description
- Interfaces
List<Server
Networking Interface> - Interface or interfaces aggregation.
- Service
Name string - The internal name of your dedicated server.
- Status string
- Operation status
- Description string
- Operation description
- Interfaces
[]Server
Networking Interface Args - Interface or interfaces aggregation.
- Service
Name string - The internal name of your dedicated server.
- Status string
- Operation status
- description String
- Operation description
- interfaces
List<Server
Networking Interface> - Interface or interfaces aggregation.
- service
Name String - The internal name of your dedicated server.
- status String
- Operation status
- description string
- Operation description
- interfaces
Server
Networking Interface[] - Interface or interfaces aggregation.
- service
Name string - The internal name of your dedicated server.
- status string
- Operation status
- description str
- Operation description
- interfaces
Sequence[dedicated.
Server Networking Interface Args] - Interface or interfaces aggregation.
- service_
name str - The internal name of your dedicated server.
- status str
- Operation status
- description String
- Operation description
- interfaces List<Property Map>
- Interface or interfaces aggregation.
- service
Name String - The internal name of your dedicated server.
- status String
- Operation status
Supporting Types
ServerNetworkingInterface, ServerNetworkingInterfaceArgs
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.