ibm.PiConsoleLanguage
Explore with Pulumi AI
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:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Instance stringName - The unique identifier or name of the instance.
- Pi
Language stringCode - Language code.
- Pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - Timeouts
Pi
Console Language Timeouts
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Instance stringName - The unique identifier or name of the instance.
- Pi
Language stringCode - Language code.
- Pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - Timeouts
Pi
Console Language Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Instance StringName - The unique identifier or name of the instance.
- pi
Language StringCode - Language code.
- pi
Console StringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - timeouts
Pi
Console Language Timeouts
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Instance stringName - The unique identifier or name of the instance.
- pi
Language stringCode - Language code.
- pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - timeouts
Pi
Console Language Timeouts
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
instance_ strname - The unique identifier or name of the instance.
- pi_
language_ strcode - Language code.
- pi_
console_ strlanguage_ id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - timeouts
Pi
Console Language Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Instance StringName - The unique identifier or name of the instance.
- pi
Language StringCode - Language code.
- pi
Console StringLanguage Id - (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.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - Pi
Instance stringName - The unique identifier or name of the instance.
- Pi
Language stringCode - Language code.
- Timeouts
Pi
Console Language Timeouts
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - Pi
Instance stringName - The unique identifier or name of the instance.
- Pi
Language stringCode - Language code.
- Timeouts
Pi
Console Language Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Console StringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - pi
Instance StringName - The unique identifier or name of the instance.
- pi
Language StringCode - Language code.
- timeouts
Pi
Console Language Timeouts
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Console stringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - pi
Instance stringName - The unique identifier or name of the instance.
- pi
Language stringCode - Language code.
- timeouts
Pi
Console Language Timeouts
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
console_ strlanguage_ id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - pi_
instance_ strname - The unique identifier or name of the instance.
- pi_
language_ strcode - Language code.
- timeouts
Pi
Console Language Timeouts Args
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Console StringLanguage Id - (String) The unique identifier of the instance console language. The ID is composed of
<pi_cloud_instance_id>/<pi_instance_name>
. - pi
Instance StringName - The unique identifier or name of the instance.
- pi
Language StringCode - Language code.
- timeouts Property Map
Supporting Types
PiConsoleLanguageTimeouts, PiConsoleLanguageTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.