forked from IBM-Cloud/terraform-provider-ibm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add return crn attribute * Update doc * Update website/docs/d/pi_workspace.html.markdown Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com> * Update resource documents * Add attribute to resource doc * workspace attr * Add Attr_CreationDate * Resolve conflicts * Add Attr_WorkspaceDetails in resource schema * Update ibm/service/power/resource_ibm_pi_workspace_test.go Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com> * Update ibm/service/power/resource_ibm_pi_workspace_test.go Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com> * Update website/docs/r/pi_workspace.html.markdown Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com> --------- Co-authored-by: michaelkad <45772690+michaelkad@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
66 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,54 @@ | ||
--- | ||
|
||
subcategory: "Power Systems" | ||
layout: "ibm" | ||
page_title: "IBM: pi_workspace" | ||
description: |- | ||
Manages a workspace in the Power Virtual Server cloud. | ||
--- | ||
|
||
# ibm_pi_workspace | ||
|
||
Create or Delete a PowerVS Workspace | ||
|
||
## Example usage | ||
|
||
```terraform | ||
data "ibm_resource_group" "group" { | ||
name = "test" | ||
} | ||
resource "ibm_pi_workspace" "powervs_service_instance" { | ||
pi_name = "test-name" | ||
pi_datacenter = "us-east" | ||
pi_resource_group_id = data.ibm_resource_group.group.id | ||
pi_plan = "public" | ||
} | ||
``` | ||
|
||
## Notes | ||
|
||
- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. | ||
- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: | ||
- `region` - `lon` | ||
- `zone` - `lon04` | ||
|
||
## Argument reference | ||
|
||
Review the argument references that you can specify for your resource. | ||
|
||
- `pi_name` - (Required, String) A descriptive name used to identify the workspace. | ||
- `pi_datacenter` - (Required, String) Target location or environment to create the resource instance. | ||
- `pi_resource_group_id` - (Required, String) The ID of the resource group where you want to create the workspace. You can retrieve the value from data source `ibm_resource_group`. | ||
- `pi_plan` - (Required, String) Plan associated with the offering; Valid values are `public` or `private`. | ||
|
||
## Attribute reference | ||
|
||
In addition to all argument reference listed, you can access the following attribute references after your resource source is created. | ||
|
||
- `id` - (String) Workspace ID. | ||
--- | ||
|
||
subcategory: "Power Systems" | ||
layout: "ibm" | ||
page_title: "IBM: pi_workspace" | ||
description: |- | ||
Manages a workspace in the Power Virtual Server cloud. | ||
--- | ||
|
||
# ibm_pi_workspace | ||
|
||
Create or Delete a PowerVS Workspace | ||
|
||
## Example usage | ||
|
||
```terraform | ||
data "ibm_resource_group" "group" { | ||
name = "test" | ||
} | ||
resource "ibm_pi_workspace" "powervs_service_instance" { | ||
pi_name = "test-name" | ||
pi_datacenter = "us-east" | ||
pi_resource_group_id = data.ibm_resource_group.group.id | ||
pi_plan = "public" | ||
} | ||
``` | ||
|
||
## Notes | ||
|
||
- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. | ||
- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: | ||
- `region` - `lon` | ||
- `zone` - `lon04` | ||
|
||
## Argument reference | ||
|
||
Review the argument references that you can specify for your resource. | ||
|
||
- `pi_name` - (Required, String) A descriptive name used to identify the workspace. | ||
- `pi_datacenter` - (Required, String) Target location or environment to create the resource instance. | ||
- `pi_resource_group_id` - (Required, String) The ID of the resource group where you want to create the workspace. You can retrieve the value from data source `ibm_resource_group`. | ||
- `pi_plan` - (Required, String) Plan associated with the offering; Valid values are `public` or `private`. | ||
|
||
## Attribute reference | ||
|
||
In addition to all argument reference listed, you can access the following attribute references after your resource source is created. | ||
|
||
- `id` - (String) Workspace ID. | ||
- `workspace_details` - (Map) Workspace information. | ||
|
||
Nested schema for `workspace_details`: | ||
- `creation_date` - (String) Date of workspace creation. | ||
- `crn` - (String) Workspace crn. |