1. Packages
  2. Ibm Provider
  3. API Docs
  4. PiConsoleLanguage
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.PiConsoleLanguage

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Update the Console Language of a Server for your Power Systems Virtual Server instance. For more information, see getting started with IBM Power Systems Virtual Servers.

    Example Usage

    The following example enables you to update the Console Languages of a Server:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = new ibm.PiConsoleLanguage("example", {
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piInstanceName: "<instance name or id>",
        piLanguageCode: "<language code>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.PiConsoleLanguage("example",
        pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_instance_name="<instance name or id>",
        pi_language_code="<language code>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewPiConsoleLanguage(ctx, "example", &ibm.PiConsoleLanguageArgs{
    			PiCloudInstanceId: pulumi.String("<value of the cloud_instance_id>"),
    			PiInstanceName:    pulumi.String("<instance name or id>"),
    			PiLanguageCode:    pulumi.String("<language code>"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ibm.PiConsoleLanguage("example", new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiInstanceName = "<instance name or id>",
            PiLanguageCode = "<language code>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PiConsoleLanguage;
    import com.pulumi.ibm.PiConsoleLanguageArgs;
    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 example = new PiConsoleLanguage("example", PiConsoleLanguageArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piInstanceName("<instance name or id>")
                .piLanguageCode("<language code>")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ibm:PiConsoleLanguage
        properties:
          piCloudInstanceId: <value of the cloud_instance_id>
          piInstanceName: <instance name or id>
          piLanguageCode: <language code>
    

    Notes

    • Please find supported Regions for endpoints.
    • If a Power cloud instance is provisioned at lon04, The provider level attributes should be as follows:
      • region - lon
      • zone - lon04

    Example usage:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Create PiConsoleLanguage Resource

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

    Constructor syntax

    new PiConsoleLanguage(name: string, args: PiConsoleLanguageArgs, opts?: CustomResourceOptions);
    @overload
    def PiConsoleLanguage(resource_name: str,
                          args: PiConsoleLanguageArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PiConsoleLanguage(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          pi_cloud_instance_id: Optional[str] = None,
                          pi_instance_name: Optional[str] = None,
                          pi_language_code: Optional[str] = None,
                          pi_console_language_id: Optional[str] = None,
                          timeouts: Optional[PiConsoleLanguageTimeoutsArgs] = None)
    func NewPiConsoleLanguage(ctx *Context, name string, args PiConsoleLanguageArgs, opts ...ResourceOption) (*PiConsoleLanguage, error)
    public PiConsoleLanguage(string name, PiConsoleLanguageArgs args, CustomResourceOptions? opts = null)
    public PiConsoleLanguage(String name, PiConsoleLanguageArgs args)
    public PiConsoleLanguage(String name, PiConsoleLanguageArgs args, CustomResourceOptions options)
    
    type: ibm:PiConsoleLanguage
    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 PiConsoleLanguageArgs
    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 PiConsoleLanguageArgs
    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 PiConsoleLanguageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PiConsoleLanguageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PiConsoleLanguageArgs
    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 piConsoleLanguageResource = new Ibm.PiConsoleLanguage("piConsoleLanguageResource", new()
    {
        PiCloudInstanceId = "string",
        PiInstanceName = "string",
        PiLanguageCode = "string",
        PiConsoleLanguageId = "string",
        Timeouts = new Ibm.Inputs.PiConsoleLanguageTimeoutsArgs
        {
            Create = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewPiConsoleLanguage(ctx, "piConsoleLanguageResource", &ibm.PiConsoleLanguageArgs{
    	PiCloudInstanceId:   pulumi.String("string"),
    	PiInstanceName:      pulumi.String("string"),
    	PiLanguageCode:      pulumi.String("string"),
    	PiConsoleLanguageId: pulumi.String("string"),
    	Timeouts: &ibm.PiConsoleLanguageTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var piConsoleLanguageResource = new PiConsoleLanguage("piConsoleLanguageResource", PiConsoleLanguageArgs.builder()
        .piCloudInstanceId("string")
        .piInstanceName("string")
        .piLanguageCode("string")
        .piConsoleLanguageId("string")
        .timeouts(PiConsoleLanguageTimeoutsArgs.builder()
            .create("string")
            .update("string")
            .build())
        .build());
    
    pi_console_language_resource = ibm.PiConsoleLanguage("piConsoleLanguageResource",
        pi_cloud_instance_id="string",
        pi_instance_name="string",
        pi_language_code="string",
        pi_console_language_id="string",
        timeouts={
            "create": "string",
            "update": "string",
        })
    
    const piConsoleLanguageResource = new ibm.PiConsoleLanguage("piConsoleLanguageResource", {
        piCloudInstanceId: "string",
        piInstanceName: "string",
        piLanguageCode: "string",
        piConsoleLanguageId: "string",
        timeouts: {
            create: "string",
            update: "string",
        },
    });
    
    type: ibm:PiConsoleLanguage
    properties:
        piCloudInstanceId: string
        piConsoleLanguageId: string
        piInstanceName: string
        piLanguageCode: string
        timeouts:
            create: string
            update: string
    

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

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The unique identifier or name of the instance.
    PiLanguageCode string
    Language code.
    PiConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    Timeouts PiConsoleLanguageTimeouts
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiInstanceName string
    The unique identifier or name of the instance.
    PiLanguageCode string
    Language code.
    PiConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    Timeouts PiConsoleLanguageTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The unique identifier or name of the instance.
    piLanguageCode String
    Language code.
    piConsoleLanguageId String
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    timeouts PiConsoleLanguageTimeouts
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piInstanceName string
    The unique identifier or name of the instance.
    piLanguageCode string
    Language code.
    piConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    timeouts PiConsoleLanguageTimeouts
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_instance_name str
    The unique identifier or name of the instance.
    pi_language_code str
    Language code.
    pi_console_language_id str
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    timeouts PiConsoleLanguageTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piInstanceName String
    The unique identifier or name of the instance.
    piLanguageCode String
    Language code.
    piConsoleLanguageId String
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    timeouts Property Map

    Outputs

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

    Get an existing PiConsoleLanguage 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?: PiConsoleLanguageState, opts?: CustomResourceOptions): PiConsoleLanguage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            pi_cloud_instance_id: Optional[str] = None,
            pi_console_language_id: Optional[str] = None,
            pi_instance_name: Optional[str] = None,
            pi_language_code: Optional[str] = None,
            timeouts: Optional[PiConsoleLanguageTimeoutsArgs] = None) -> PiConsoleLanguage
    func GetPiConsoleLanguage(ctx *Context, name string, id IDInput, state *PiConsoleLanguageState, opts ...ResourceOption) (*PiConsoleLanguage, error)
    public static PiConsoleLanguage Get(string name, Input<string> id, PiConsoleLanguageState? state, CustomResourceOptions? opts = null)
    public static PiConsoleLanguage get(String name, Output<String> id, PiConsoleLanguageState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PiConsoleLanguage    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:
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    PiInstanceName string
    The unique identifier or name of the instance.
    PiLanguageCode string
    Language code.
    Timeouts PiConsoleLanguageTimeouts
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    PiInstanceName string
    The unique identifier or name of the instance.
    PiLanguageCode string
    Language code.
    Timeouts PiConsoleLanguageTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piConsoleLanguageId String
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    piInstanceName String
    The unique identifier or name of the instance.
    piLanguageCode String
    Language code.
    timeouts PiConsoleLanguageTimeouts
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piConsoleLanguageId string
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    piInstanceName string
    The unique identifier or name of the instance.
    piLanguageCode string
    Language code.
    timeouts PiConsoleLanguageTimeouts
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_console_language_id str
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    pi_instance_name str
    The unique identifier or name of the instance.
    pi_language_code str
    Language code.
    timeouts PiConsoleLanguageTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piConsoleLanguageId String
    (String) The unique identifier of the instance console language. The ID is composed of <pi_cloud_instance_id>/<pi_instance_name>.
    piInstanceName String
    The unique identifier or name of the instance.
    piLanguageCode String
    Language code.
    timeouts Property Map

    Supporting Types

    PiConsoleLanguageTimeouts, PiConsoleLanguageTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Package Details

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