1. Packages
  2. OVH
  3. API Docs
  4. Dedicated
  5. ServerNetworking
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Dedicated.ServerNetworking

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    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<ServerNetworkingInterface>
    Interface or interfaces aggregation.
    ServiceName string
    The internal name of your dedicated server.
    Interfaces []ServerNetworkingInterfaceArgs
    Interface or interfaces aggregation.
    ServiceName string
    The internal name of your dedicated server.
    interfaces List<ServerNetworkingInterface>
    Interface or interfaces aggregation.
    serviceName String
    The internal name of your dedicated server.
    interfaces ServerNetworkingInterface[]
    Interface or interfaces aggregation.
    serviceName string
    The internal name of your dedicated server.
    interfaces Sequence[dedicated.ServerNetworkingInterfaceArgs]
    Interface or interfaces aggregation.
    service_name str
    The internal name of your dedicated server.
    interfaces List<Property Map>
    Interface or interfaces aggregation.
    serviceName 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.
    The following state arguments are supported:
    Description string
    Operation description
    Interfaces List<ServerNetworkingInterface>
    Interface or interfaces aggregation.
    ServiceName string
    The internal name of your dedicated server.
    Status string
    Operation status
    Description string
    Operation description
    Interfaces []ServerNetworkingInterfaceArgs
    Interface or interfaces aggregation.
    ServiceName string
    The internal name of your dedicated server.
    Status string
    Operation status
    description String
    Operation description
    interfaces List<ServerNetworkingInterface>
    Interface or interfaces aggregation.
    serviceName String
    The internal name of your dedicated server.
    status String
    Operation status
    description string
    Operation description
    interfaces ServerNetworkingInterface[]
    Interface or interfaces aggregation.
    serviceName string
    The internal name of your dedicated server.
    status string
    Operation status
    description str
    Operation description
    interfaces Sequence[dedicated.ServerNetworkingInterfaceArgs]
    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.
    serviceName String
    The internal name of your dedicated server.
    status String
    Operation status

    Supporting Types

    ServerNetworkingInterface, ServerNetworkingInterfaceArgs

    Macs List<string>
    Interface Mac address
    Type string
    Interface type
    Macs []string
    Interface Mac address
    Type string
    Interface type
    macs List<String>
    Interface Mac address
    type String
    Interface type
    macs string[]
    Interface Mac address
    type string
    Interface type
    macs Sequence[str]
    Interface Mac address
    type str
    Interface type
    macs List<String>
    Interface Mac address
    type String
    Interface type

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud