ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiWorkspaces
Explore with Pulumi AI
Retrieve information about Power Systems workspaces.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const workspaces = ibm.getPiWorkspaces({
piCloudInstanceId: "99fba9c9-66f9-99bc-9999-aca999ee9d9b",
});
import pulumi
import pulumi_ibm as ibm
workspaces = ibm.get_pi_workspaces(pi_cloud_instance_id="99fba9c9-66f9-99bc-9999-aca999ee9d9b")
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.GetPiWorkspaces(ctx, &ibm.GetPiWorkspacesArgs{
PiCloudInstanceId: "99fba9c9-66f9-99bc-9999-aca999ee9d9b",
}, nil)
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 workspaces = Ibm.GetPiWorkspaces.Invoke(new()
{
PiCloudInstanceId = "99fba9c9-66f9-99bc-9999-aca999ee9d9b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetPiWorkspacesArgs;
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) {
final var workspaces = IbmFunctions.getPiWorkspaces(GetPiWorkspacesArgs.builder()
.piCloudInstanceId("99fba9c9-66f9-99bc-9999-aca999ee9d9b")
.build());
}
}
variables:
workspaces:
fn::invoke:
function: ibm:getPiWorkspaces
arguments:
piCloudInstanceId: 99fba9c9-66f9-99bc-9999-aca999ee9d9b
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) {
}
}
{}
Using getPiWorkspaces
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPiWorkspaces(args: GetPiWorkspacesArgs, opts?: InvokeOptions): Promise<GetPiWorkspacesResult>
function getPiWorkspacesOutput(args: GetPiWorkspacesOutputArgs, opts?: InvokeOptions): Output<GetPiWorkspacesResult>
def get_pi_workspaces(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiWorkspacesResult
def get_pi_workspaces_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiWorkspacesResult]
func GetPiWorkspaces(ctx *Context, args *GetPiWorkspacesArgs, opts ...InvokeOption) (*GetPiWorkspacesResult, error)
func GetPiWorkspacesOutput(ctx *Context, args *GetPiWorkspacesOutputArgs, opts ...InvokeOption) GetPiWorkspacesResultOutput
> Note: This function is named GetPiWorkspaces
in the Go SDK.
public static class GetPiWorkspaces
{
public static Task<GetPiWorkspacesResult> InvokeAsync(GetPiWorkspacesArgs args, InvokeOptions? opts = null)
public static Output<GetPiWorkspacesResult> Invoke(GetPiWorkspacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiWorkspacesResult> getPiWorkspaces(GetPiWorkspacesArgs args, InvokeOptions options)
public static Output<GetPiWorkspacesResult> getPiWorkspaces(GetPiWorkspacesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiWorkspaces:getPiWorkspaces
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
getPiWorkspaces Result
The following output properties are available:
- Id string
- Pi
Cloud stringInstance Id - Workspaces
List<Get
Pi Workspaces Workspace> - (List) List of all Workspaces.
Nested schema for
workspaces
- Id string
- Pi
Cloud stringInstance Id - Workspaces
[]Get
Pi Workspaces Workspace - (List) List of all Workspaces.
Nested schema for
workspaces
- id String
- pi
Cloud StringInstance Id - workspaces
List<Get
Pi Workspaces Workspace> - (List) List of all Workspaces.
Nested schema for
workspaces
- id string
- pi
Cloud stringInstance Id - workspaces
Get
Pi Workspaces Workspace[] - (List) List of all Workspaces.
Nested schema for
workspaces
- id str
- pi_
cloud_ strinstance_ id - workspaces
Sequence[Get
Pi Workspaces Workspace] - (List) List of all Workspaces.
Nested schema for
workspaces
- id String
- pi
Cloud StringInstance Id - workspaces List<Property Map>
- (List) List of all Workspaces.
Nested schema for
workspaces
Supporting Types
GetPiWorkspacesWorkspace
- Pi
Workspace Dictionary<string, bool>Capabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - Pi
Workspace List<GetDetails Pi Workspaces Workspace Pi Workspace Detail> - (List) Workspace information.
- Pi
Workspace stringId - (String) Workspace ID.
- Pi
Workspace Dictionary<string, string>Location - (Map) Workspace location.
- Pi
Workspace stringName - (String) Workspace name.
- Pi
Workspace stringStatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - Pi
Workspace stringType - (String) Workspace type,
off-premises
oron-premises
.
- Pi
Workspace map[string]boolCapabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - Pi
Workspace []GetDetails Pi Workspaces Workspace Pi Workspace Detail - (List) Workspace information.
- Pi
Workspace stringId - (String) Workspace ID.
- Pi
Workspace map[string]stringLocation - (Map) Workspace location.
- Pi
Workspace stringName - (String) Workspace name.
- Pi
Workspace stringStatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - Pi
Workspace stringType - (String) Workspace type,
off-premises
oron-premises
.
- pi
Workspace Map<String,Boolean>Capabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - pi
Workspace List<GetDetails Pi Workspaces Workspace Pi Workspace Detail> - (List) Workspace information.
- pi
Workspace StringId - (String) Workspace ID.
- pi
Workspace Map<String,String>Location - (Map) Workspace location.
- pi
Workspace StringName - (String) Workspace name.
- pi
Workspace StringStatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - pi
Workspace StringType - (String) Workspace type,
off-premises
oron-premises
.
- pi
Workspace {[key: string]: boolean}Capabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - pi
Workspace GetDetails Pi Workspaces Workspace Pi Workspace Detail[] - (List) Workspace information.
- pi
Workspace stringId - (String) Workspace ID.
- pi
Workspace {[key: string]: string}Location - (Map) Workspace location.
- pi
Workspace stringName - (String) Workspace name.
- pi
Workspace stringStatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - pi
Workspace stringType - (String) Workspace type,
off-premises
oron-premises
.
- pi_
workspace_ Mapping[str, bool]capabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - pi_
workspace_ Sequence[Getdetails Pi Workspaces Workspace Pi Workspace Detail] - (List) Workspace information.
- pi_
workspace_ strid - (String) Workspace ID.
- pi_
workspace_ Mapping[str, str]location - (Map) Workspace location.
- pi_
workspace_ strname - (String) Workspace name.
- pi_
workspace_ strstatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - pi_
workspace_ strtype - (String) Workspace type,
off-premises
oron-premises
.
- pi
Workspace Map<Boolean>Capabilities - (Map) Workspace Capabilities. Capabilities are
true
orfalse
. - pi
Workspace List<Property Map>Details - (List) Workspace information.
- pi
Workspace StringId - (String) Workspace ID.
- pi
Workspace Map<String>Location - (Map) Workspace location.
- pi
Workspace StringName - (String) Workspace name.
- pi
Workspace StringStatus - (String) Workspace status,
active
,critical
,failed
,provisioning
. - pi
Workspace StringType - (String) Workspace type,
off-premises
oron-premises
.
GetPiWorkspacesWorkspacePiWorkspaceDetail
- Creation
Date string - (String) Date of workspace creation.
- Crn string
- (String) Workspace crn.
- Network
Security List<GetGroups Pi Workspaces Workspace Pi Workspace Detail Network Security Group> - (List) Network security groups configuration.
- Power
Edge List<GetRouters Pi Workspaces Workspace Pi Workspace Detail Power Edge Router> - (List) Power Edge Router information.
- Creation
Date string - (String) Date of workspace creation.
- Crn string
- (String) Workspace crn.
- Network
Security []GetGroups Pi Workspaces Workspace Pi Workspace Detail Network Security Group - (List) Network security groups configuration.
- Power
Edge []GetRouters Pi Workspaces Workspace Pi Workspace Detail Power Edge Router - (List) Power Edge Router information.
- creation
Date String - (String) Date of workspace creation.
- crn String
- (String) Workspace crn.
- network
Security List<GetGroups Pi Workspaces Workspace Pi Workspace Detail Network Security Group> - (List) Network security groups configuration.
- power
Edge List<GetRouters Pi Workspaces Workspace Pi Workspace Detail Power Edge Router> - (List) Power Edge Router information.
- creation
Date string - (String) Date of workspace creation.
- crn string
- (String) Workspace crn.
- network
Security GetGroups Pi Workspaces Workspace Pi Workspace Detail Network Security Group[] - (List) Network security groups configuration.
- power
Edge GetRouters Pi Workspaces Workspace Pi Workspace Detail Power Edge Router[] - (List) Power Edge Router information.
- creation_
date str - (String) Date of workspace creation.
- crn str
- (String) Workspace crn.
- network_
security_ Sequence[Getgroups Pi Workspaces Workspace Pi Workspace Detail Network Security Group] - (List) Network security groups configuration.
- power_
edge_ Sequence[Getrouters Pi Workspaces Workspace Pi Workspace Detail Power Edge Router] - (List) Power Edge Router information.
- creation
Date String - (String) Date of workspace creation.
- crn String
- (String) Workspace crn.
- network
Security List<Property Map>Groups - (List) Network security groups configuration.
- power
Edge List<Property Map>Routers - (List) Power Edge Router information.
GetPiWorkspacesWorkspacePiWorkspaceDetailNetworkSecurityGroup
- State string
- (String) The state of a network security groups configuration.
- State string
- (String) The state of a network security groups configuration.
- state String
- (String) The state of a network security groups configuration.
- state string
- (String) The state of a network security groups configuration.
- state str
- (String) The state of a network security groups configuration.
- state String
- (String) The state of a network security groups configuration.
GetPiWorkspacesWorkspacePiWorkspaceDetailPowerEdgeRouter
- Migration
Status string - (String) The migration status of a Power Edge Router.
- State string
- (String) The state of a network security groups configuration.
- Type string
- (String) Workspace location region type.
- Migration
Status string - (String) The migration status of a Power Edge Router.
- State string
- (String) The state of a network security groups configuration.
- Type string
- (String) Workspace location region type.
- migration
Status String - (String) The migration status of a Power Edge Router.
- state String
- (String) The state of a network security groups configuration.
- type String
- (String) Workspace location region type.
- migration
Status string - (String) The migration status of a Power Edge Router.
- state string
- (String) The state of a network security groups configuration.
- type string
- (String) Workspace location region type.
- migration_
status str - (String) The migration status of a Power Edge Router.
- state str
- (String) The state of a network security groups configuration.
- type str
- (String) Workspace location region type.
- migration
Status String - (String) The migration status of a Power Edge Router.
- state String
- (String) The state of a network security groups configuration.
- type String
- (String) Workspace location region type.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.