All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::MOBI::Workspaces

Last Updated:Apr 22, 2025

DATASOURCE::MOBI::Workspaces is used to query workspaces.

Syntax

{
  "Type": "DATASOURCE::MOBI::Workspaces",
  "Properties": {
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values

Fn::GetAtt

  • WorkspaceIds: the IDs of the workspaces.

  • Workspaces: details of the workspaces.

Property

Type

Description

Constraint

WorkspaceIds

List

The IDs of the workspaces.

None.

Workspaces

List

Details of the workspaces.

None.

WorkspaceId

String

The ID of the workspace.

None.

CreateTime

String

The time when the workspace was created.

None.

WorkspaceName

String

The name of the workspace.

None.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::MOBI::Workspaces
Outputs:
  WorkspaceIds:
    Description: The list of workspace IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - WorkspaceIds
  Workspaces:
    Description: The list of workspaces.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Workspaces
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::MOBI::Workspaces"
    }
  },
  "Outputs": {
    "WorkspaceIds": {
      "Description": "The list of workspace IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "WorkspaceIds"
        ]
      }
    },
    "Workspaces": {
      "Description": "The list of workspaces.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Workspaces"
        ]
      }
    }
  }
}