1. Packages
  2. Powerscale Provider
  3. API Docs
  4. NetworkSettings
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

powerscale.NetworkSettings

Explore with Pulumi AI

powerscale logo
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

    This resource is used to manage the Network Settings entity of PowerScale Array. PowerScale Network Settings provide the ability to configure external network configuration on the cluster.We can Create, Update and Delete the Network Settings using this resource. We can also import an existing Network Settings from PowerScale array. Note that, Network Settings is the native functionality of PowerScale. When creating the resource, we actually load Network Settings from PowerScale to the resource state.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    // PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
    const exampleNetworkSettings = new powerscale.NetworkSettings("exampleNetworkSettings", {});
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    # PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
    example_network_settings = powerscale.NetworkSettings("exampleNetworkSettings")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
    		_, err := powerscale.NewNetworkSettings(ctx, "exampleNetworkSettings", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerscale = Pulumi.Powerscale;
    
    return await Deployment.RunAsync(() => 
    {
        // PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
        var exampleNetworkSettings = new Powerscale.NetworkSettings("exampleNetworkSettings");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.NetworkSettings;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
            var exampleNetworkSettings = new NetworkSettings("exampleNetworkSettings");
    
        }
    }
    
    resources:
      # PowerScale Network Settings provide the ability to configure external network configuration on the cluster.
      exampleNetworkSettings:
        type: powerscale:NetworkSettings
    

    Create NetworkSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkSettings(name: string, args?: NetworkSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkSettings(resource_name: str,
                        args: Optional[NetworkSettingsArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkSettings(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        sc_rebalance_delay: Optional[float] = None,
                        source_based_routing_enabled: Optional[bool] = None,
                        tcp_ports: Optional[Sequence[float]] = None)
    func NewNetworkSettings(ctx *Context, name string, args *NetworkSettingsArgs, opts ...ResourceOption) (*NetworkSettings, error)
    public NetworkSettings(string name, NetworkSettingsArgs? args = null, CustomResourceOptions? opts = null)
    public NetworkSettings(String name, NetworkSettingsArgs args)
    public NetworkSettings(String name, NetworkSettingsArgs args, CustomResourceOptions options)
    
    type: powerscale:NetworkSettings
    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 NetworkSettingsArgs
    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 NetworkSettingsArgs
    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 NetworkSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkSettingsArgs
    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 networkSettingsResource = new Powerscale.NetworkSettings("networkSettingsResource", new()
    {
        ScRebalanceDelay = 0,
        SourceBasedRoutingEnabled = false,
        TcpPorts = new[]
        {
            0,
        },
    });
    
    example, err := powerscale.NewNetworkSettings(ctx, "networkSettingsResource", &powerscale.NetworkSettingsArgs{
    	ScRebalanceDelay:          pulumi.Float64(0),
    	SourceBasedRoutingEnabled: pulumi.Bool(false),
    	TcpPorts: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    })
    
    var networkSettingsResource = new NetworkSettings("networkSettingsResource", NetworkSettingsArgs.builder()
        .scRebalanceDelay(0)
        .sourceBasedRoutingEnabled(false)
        .tcpPorts(0)
        .build());
    
    network_settings_resource = powerscale.NetworkSettings("networkSettingsResource",
        sc_rebalance_delay=0,
        source_based_routing_enabled=False,
        tcp_ports=[0])
    
    const networkSettingsResource = new powerscale.NetworkSettings("networkSettingsResource", {
        scRebalanceDelay: 0,
        sourceBasedRoutingEnabled: false,
        tcpPorts: [0],
    });
    
    type: powerscale:NetworkSettings
    properties:
        scRebalanceDelay: 0
        sourceBasedRoutingEnabled: false
        tcpPorts:
            - 0
    

    NetworkSettings 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 NetworkSettings resource accepts the following input properties:

    ScRebalanceDelay double
    Delay in seconds for IP rebalance.
    SourceBasedRoutingEnabled bool
    Enable or disable Source Based Routing.
    TcpPorts List<double>
    List of client TCP ports.
    ScRebalanceDelay float64
    Delay in seconds for IP rebalance.
    SourceBasedRoutingEnabled bool
    Enable or disable Source Based Routing.
    TcpPorts []float64
    List of client TCP ports.
    scRebalanceDelay Double
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled Boolean
    Enable or disable Source Based Routing.
    tcpPorts List<Double>
    List of client TCP ports.
    scRebalanceDelay number
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled boolean
    Enable or disable Source Based Routing.
    tcpPorts number[]
    List of client TCP ports.
    sc_rebalance_delay float
    Delay in seconds for IP rebalance.
    source_based_routing_enabled bool
    Enable or disable Source Based Routing.
    tcp_ports Sequence[float]
    List of client TCP ports.
    scRebalanceDelay Number
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled Boolean
    Enable or disable Source Based Routing.
    tcpPorts List<Number>
    List of client TCP ports.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkSettings resource produces the following output properties:

    DefaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    Id string
    The provider-assigned unique ID for this managed resource.
    defaultGroupnet String
    Default client-side DNS settings for non-multitenancy aware programs.
    id String
    The provider-assigned unique ID for this managed resource.
    defaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    id string
    The provider-assigned unique ID for this managed resource.
    default_groupnet str
    Default client-side DNS settings for non-multitenancy aware programs.
    id str
    The provider-assigned unique ID for this managed resource.
    defaultGroupnet String
    Default client-side DNS settings for non-multitenancy aware programs.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkSettings Resource

    Get an existing NetworkSettings 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?: NetworkSettingsState, opts?: CustomResourceOptions): NetworkSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_groupnet: Optional[str] = None,
            sc_rebalance_delay: Optional[float] = None,
            source_based_routing_enabled: Optional[bool] = None,
            tcp_ports: Optional[Sequence[float]] = None) -> NetworkSettings
    func GetNetworkSettings(ctx *Context, name string, id IDInput, state *NetworkSettingsState, opts ...ResourceOption) (*NetworkSettings, error)
    public static NetworkSettings Get(string name, Input<string> id, NetworkSettingsState? state, CustomResourceOptions? opts = null)
    public static NetworkSettings get(String name, Output<String> id, NetworkSettingsState state, CustomResourceOptions options)
    resources:  _:    type: powerscale:NetworkSettings    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.
    The following state arguments are supported:
    DefaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    ScRebalanceDelay double
    Delay in seconds for IP rebalance.
    SourceBasedRoutingEnabled bool
    Enable or disable Source Based Routing.
    TcpPorts List<double>
    List of client TCP ports.
    DefaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    ScRebalanceDelay float64
    Delay in seconds for IP rebalance.
    SourceBasedRoutingEnabled bool
    Enable or disable Source Based Routing.
    TcpPorts []float64
    List of client TCP ports.
    defaultGroupnet String
    Default client-side DNS settings for non-multitenancy aware programs.
    scRebalanceDelay Double
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled Boolean
    Enable or disable Source Based Routing.
    tcpPorts List<Double>
    List of client TCP ports.
    defaultGroupnet string
    Default client-side DNS settings for non-multitenancy aware programs.
    scRebalanceDelay number
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled boolean
    Enable or disable Source Based Routing.
    tcpPorts number[]
    List of client TCP ports.
    default_groupnet str
    Default client-side DNS settings for non-multitenancy aware programs.
    sc_rebalance_delay float
    Delay in seconds for IP rebalance.
    source_based_routing_enabled bool
    Enable or disable Source Based Routing.
    tcp_ports Sequence[float]
    List of client TCP ports.
    defaultGroupnet String
    Default client-side DNS settings for non-multitenancy aware programs.
    scRebalanceDelay Number
    Delay in seconds for IP rebalance.
    sourceBasedRoutingEnabled Boolean
    Enable or disable Source Based Routing.
    tcpPorts List<Number>
    List of client TCP ports.

    Import

    Copyright (c) 2023-2024 Dell Inc., or its subsidiaries. All Rights Reserved.

    Licensed under the Mozilla Public License Version 2.0 (the “License”);

    you may not use this file except in compliance with the License.

    You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/
    

    Unless required by applicable law or agreed to in writing, software

    distributed under the License is distributed on an “AS IS” BASIS,

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and

    limitations under the License.

    The command is

    $ pulumi import powerscale:index/networkSettings:NetworkSettings example_network_settings <anyString>
    

    Example:

    $ pulumi import powerscale:index/networkSettings:NetworkSettings example_network_settings anyString
    

    after running this command, populate the name field and other required parameters in the config file to start managing this resource.

    Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    powerscale dell/terraform-provider-powerscale
    License
    Notes
    This Pulumi package is based on the powerscale Terraform Provider.
    powerscale logo
    powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell