powerscale.NetworkSettings
Explore with Pulumi AI
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:
- Sc
Rebalance doubleDelay - Delay in seconds for IP rebalance.
- Source
Based boolRouting Enabled - Enable or disable Source Based Routing.
- Tcp
Ports List<double> - List of client TCP ports.
- Sc
Rebalance float64Delay - Delay in seconds for IP rebalance.
- Source
Based boolRouting Enabled - Enable or disable Source Based Routing.
- Tcp
Ports []float64 - List of client TCP ports.
- sc
Rebalance DoubleDelay - Delay in seconds for IP rebalance.
- source
Based BooleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports List<Double> - List of client TCP ports.
- sc
Rebalance numberDelay - Delay in seconds for IP rebalance.
- source
Based booleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports number[] - List of client TCP ports.
- sc_
rebalance_ floatdelay - Delay in seconds for IP rebalance.
- source_
based_ boolrouting_ enabled - Enable or disable Source Based Routing.
- tcp_
ports Sequence[float] - List of client TCP ports.
- sc
Rebalance NumberDelay - Delay in seconds for IP rebalance.
- source
Based BooleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports 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:
- Default
Groupnet string - Default client-side DNS settings for non-multitenancy aware programs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Default
Groupnet string - Default client-side DNS settings for non-multitenancy aware programs.
- Id string
- The provider-assigned unique ID for this managed resource.
- default
Groupnet String - Default client-side DNS settings for non-multitenancy aware programs.
- id String
- The provider-assigned unique ID for this managed resource.
- default
Groupnet 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.
- default
Groupnet 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.
- Default
Groupnet string - Default client-side DNS settings for non-multitenancy aware programs.
- Sc
Rebalance doubleDelay - Delay in seconds for IP rebalance.
- Source
Based boolRouting Enabled - Enable or disable Source Based Routing.
- Tcp
Ports List<double> - List of client TCP ports.
- Default
Groupnet string - Default client-side DNS settings for non-multitenancy aware programs.
- Sc
Rebalance float64Delay - Delay in seconds for IP rebalance.
- Source
Based boolRouting Enabled - Enable or disable Source Based Routing.
- Tcp
Ports []float64 - List of client TCP ports.
- default
Groupnet String - Default client-side DNS settings for non-multitenancy aware programs.
- sc
Rebalance DoubleDelay - Delay in seconds for IP rebalance.
- source
Based BooleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports List<Double> - List of client TCP ports.
- default
Groupnet string - Default client-side DNS settings for non-multitenancy aware programs.
- sc
Rebalance numberDelay - Delay in seconds for IP rebalance.
- source
Based booleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports number[] - List of client TCP ports.
- default_
groupnet str - Default client-side DNS settings for non-multitenancy aware programs.
- sc_
rebalance_ floatdelay - Delay in seconds for IP rebalance.
- source_
based_ boolrouting_ enabled - Enable or disable Source Based Routing.
- tcp_
ports Sequence[float] - List of client TCP ports.
- default
Groupnet String - Default client-side DNS settings for non-multitenancy aware programs.
- sc
Rebalance NumberDelay - Delay in seconds for IP rebalance.
- source
Based BooleanRouting Enabled - Enable or disable Source Based Routing.
- tcp
Ports 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.