1. Packages
  2. Mso Provider
  3. API Docs
  4. SystemConfig
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

mso.SystemConfig

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";

const systemConfig = new mso.SystemConfig("systemConfig", {
    alias: "test alias",
    banner: {
        message: "test message",
        state: "active",
        type: "warning",
    },
    changeControl: {
        number_of_approvers: "2",
        workflow: "enabled",
    },
});
Copy
import pulumi
import pulumi_mso as mso

system_config = mso.SystemConfig("systemConfig",
    alias="test alias",
    banner={
        "message": "test message",
        "state": "active",
        "type": "warning",
    },
    change_control={
        "number_of_approvers": "2",
        "workflow": "enabled",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/mso/mso"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mso.NewSystemConfig(ctx, "systemConfig", &mso.SystemConfigArgs{
			Alias: pulumi.String("test alias"),
			Banner: &mso.SystemConfigBannerArgs{
				Message: pulumi.String("test message"),
				State:   pulumi.String("active"),
				Type:    pulumi.String("warning"),
			},
			ChangeControl: pulumi.StringMap{
				"number_of_approvers": pulumi.String("2"),
				"workflow":            pulumi.String("enabled"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mso = Pulumi.Mso;

return await Deployment.RunAsync(() => 
{
    var systemConfig = new Mso.SystemConfig("systemConfig", new()
    {
        Alias = "test alias",
        Banner = new Mso.Inputs.SystemConfigBannerArgs
        {
            Message = "test message",
            State = "active",
            Type = "warning",
        },
        ChangeControl = 
        {
            { "number_of_approvers", "2" },
            { "workflow", "enabled" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mso.SystemConfig;
import com.pulumi.mso.SystemConfigArgs;
import com.pulumi.mso.inputs.SystemConfigBannerArgs;
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) {
        var systemConfig = new SystemConfig("systemConfig", SystemConfigArgs.builder()
            .alias("test alias")
            .banner(SystemConfigBannerArgs.builder()
                .message("test message")
                .state("active")
                .type("warning")
                .build())
            .changeControl(Map.ofEntries(
                Map.entry("number_of_approvers", 2),
                Map.entry("workflow", "enabled")
            ))
            .build());

    }
}
Copy
resources:
  systemConfig:
    type: mso:SystemConfig
    properties:
      alias: test alias
      banner:
        message: test message
        state: active
        type: warning
      changeControl:
        number_of_approvers: 2
        workflow: enabled
Copy

Argument Reference

  • alias - (Optional) The system Alias.
  • banner - (Optional) A list of Banner configuration.
    • state - (Required) The state of the Banner. Allowed values are active or inactive.
    • type - (Required) The type of the Banner. Allowed values are critical, warning or informational.
    • message - (Required) The message of the Banner.
  • change_control - (Optional) A map of Change Control configuration.
    • workflow - (Required) Whether Change Control workflow is enabled. Allowed values are enabled, or disabled.
    • number_of_approvers - (Optional) The number of approvers for the Change Control. MSO defaults to 1 when not provided.

Attribute Reference

No attributes are exported.

Create SystemConfig Resource

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

Constructor syntax

new SystemConfig(name: string, args?: SystemConfigArgs, opts?: CustomResourceOptions);
@overload
def SystemConfig(resource_name: str,
                 args: Optional[SystemConfigArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def SystemConfig(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 alias: Optional[str] = None,
                 banner: Optional[SystemConfigBannerArgs] = None,
                 change_control: Optional[Mapping[str, str]] = None,
                 system_config_id: Optional[str] = None)
func NewSystemConfig(ctx *Context, name string, args *SystemConfigArgs, opts ...ResourceOption) (*SystemConfig, error)
public SystemConfig(string name, SystemConfigArgs? args = null, CustomResourceOptions? opts = null)
public SystemConfig(String name, SystemConfigArgs args)
public SystemConfig(String name, SystemConfigArgs args, CustomResourceOptions options)
type: mso:SystemConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemConfigArgs
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 systemConfigResource = new Mso.SystemConfig("systemConfigResource", new()
{
    Alias = "string",
    Banner = new Mso.Inputs.SystemConfigBannerArgs
    {
        Message = "string",
        State = "string",
        Type = "string",
    },
    ChangeControl = 
    {
        { "string", "string" },
    },
    SystemConfigId = "string",
});
Copy
example, err := mso.NewSystemConfig(ctx, "systemConfigResource", &mso.SystemConfigArgs{
Alias: pulumi.String("string"),
Banner: &.SystemConfigBannerArgs{
Message: pulumi.String("string"),
State: pulumi.String("string"),
Type: pulumi.String("string"),
},
ChangeControl: pulumi.StringMap{
"string": pulumi.String("string"),
},
SystemConfigId: pulumi.String("string"),
})
Copy
var systemConfigResource = new SystemConfig("systemConfigResource", SystemConfigArgs.builder()
    .alias("string")
    .banner(SystemConfigBannerArgs.builder()
        .message("string")
        .state("string")
        .type("string")
        .build())
    .changeControl(Map.of("string", "string"))
    .systemConfigId("string")
    .build());
Copy
system_config_resource = mso.SystemConfig("systemConfigResource",
    alias="string",
    banner={
        "message": "string",
        "state": "string",
        "type": "string",
    },
    change_control={
        "string": "string",
    },
    system_config_id="string")
Copy
const systemConfigResource = new mso.SystemConfig("systemConfigResource", {
    alias: "string",
    banner: {
        message: "string",
        state: "string",
        type: "string",
    },
    changeControl: {
        string: "string",
    },
    systemConfigId: "string",
});
Copy
type: mso:SystemConfig
properties:
    alias: string
    banner:
        message: string
        state: string
        type: string
    changeControl:
        string: string
    systemConfigId: string
Copy

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

Alias string
SystemConfigBanner
ChangeControl Dictionary<string, string>
SystemConfigId string
alias string
SystemConfigBanner
changeControl {[key: string]: string}
systemConfigId string

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemConfig 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 SystemConfig Resource

Get an existing SystemConfig 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?: SystemConfigState, opts?: CustomResourceOptions): SystemConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias: Optional[str] = None,
        banner: Optional[SystemConfigBannerArgs] = None,
        change_control: Optional[Mapping[str, str]] = None,
        system_config_id: Optional[str] = None) -> SystemConfig
func GetSystemConfig(ctx *Context, name string, id IDInput, state *SystemConfigState, opts ...ResourceOption) (*SystemConfig, error)
public static SystemConfig Get(string name, Input<string> id, SystemConfigState? state, CustomResourceOptions? opts = null)
public static SystemConfig get(String name, Output<String> id, SystemConfigState state, CustomResourceOptions options)
resources:  _:    type: mso:SystemConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Alias string
Banner SystemConfigBanner
ChangeControl Dictionary<string, string>
SystemConfigId string
alias string
banner SystemConfigBanner
changeControl {[key: string]: string}
systemConfigId string

Supporting Types

SystemConfigBanner
, SystemConfigBannerArgs

Message This property is required. string
State This property is required. string
Type This property is required. string
Message This property is required. string
State This property is required. string
Type This property is required. string
message This property is required. String
state This property is required. String
type This property is required. String
message This property is required. string
state This property is required. string
type This property is required. string
message This property is required. str
state This property is required. str
type This property is required. str
message This property is required. String
state This property is required. String
type This property is required. String

Import

ing ##

The pulumi import command is not supported. The pulumi up command without configuration can be used instead.

import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";

const systemConfig = new mso.SystemConfig("systemConfig", {});
Copy
import pulumi
import pulumi_mso as mso

system_config = mso.SystemConfig("systemConfig")
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mso = Pulumi.Mso;

return await Deployment.RunAsync(() => 
{
    var systemConfig = new Mso.SystemConfig("systemConfig");

});
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/mso/mso"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mso.NewSystemConfig(ctx, "systemConfig", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mso.SystemConfig;
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) {
        var systemConfig = new SystemConfig("systemConfig");

    }
}
Copy
resources:
  systemConfig:
    type: mso:SystemConfig
Copy

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

Package Details

Repository
mso ciscodevnet/terraform-provider-mso
License
Notes
This Pulumi package is based on the mso Terraform Provider.