Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBM Cloud VPC Documentation Update #3479

Merged
merged 6 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/docs/d/is_dedicated_host.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ provider "ibm" {
The following example retrieves information about the dedicated host data sources.

```terraform
data "ibm_is_dedicated_host" "is_dedicated_host" {
host_group = "1e09281b-f177-46fb-baf1-bc152b2e391a"
name = "my-dedicated-host"
data "ibm_is_dedicated_host" "example" {
host_group = ibm_is_dedicated_host_group.example.id
name = "example-dedicated-host"
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/docs/d/is_dedicated_host_disk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_disk" "is_dedicated_host_disk" {
dedicated_host = "dedicatedhost id"
disk = "id"
data "ibm_is_dedicated_host_disk" "example" {
dedicated_host = ibm_is_dedicated_host.example.id
disk = data.ibm_is_dedicated_host_disks.example.disks.0.id
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_dedicated_host_disks.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_disks" "is_dedicated_host_disks" {
dedicated_host = "dedicatedhost id"
data "ibm_is_dedicated_host_disks" "example" {
dedicated_host = ibm_is_dedicated_host.example.id
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_dedicated_host_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_group" "is_dedicated_host_group" {
name = "my-host-group"
data "ibm_is_dedicated_host_group" "example" {
name = "example-host-group"
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/is_dedicated_host_groups.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_groups" "is_dedicated_host_groups" {
data "ibm_is_dedicated_host_groups" "example" {
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_dedicated_host_profile.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_profile" "is_dedicated_host_profile" {
name = "dh2-56x464"
data "ibm_is_dedicated_host_profile" "example" {
name = "dh2-56x464"
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/is_dedicated_host_profiles.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_host_profiles" "is_dedicated_host_profiles" {
data "ibm_is_dedicated_host_profiles" "example" {
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_dedicated_hosts.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_dedicated_hosts" "is_dedicated_hosts" {
host_group = "1e09281b-f177-46fb-baf1-bc152b2e391a"
data "ibm_is_dedicated_hosts" "example" {
host_group = ibm_is_dedicated_host_group.example.id
}
```

Expand Down
6 changes: 2 additions & 4 deletions website/docs/d/is_endpoint_gateway_targets.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ provider "ibm" {
## Example usage

```terraform

data "ibm_is_endpoint_gateway_targets" "endpointGatewayTargets" {
}

data "ibm_is_endpoint_gateway_targets" "example" {
}
```

## Attribute reference
Expand Down
8 changes: 3 additions & 5 deletions website/docs/d/is_floating_ip.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ provider "ibm" {
## Example usage

```terraform

data "ibm_is_floating_ip" "test" {
name = "test-fp"
}

data "ibm_is_floating_ip" "example" {
name = "example-floating-ip"
}
```

## Argument reference
Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_floating_ips.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ provider "ibm" {
## Example usage

```terraform
data "ibm_is_floating_ips" "is_floating_ips" {
name = "my-floating-ip"
data "ibm_is_floating_ips" "example" {
name = "example-floating-ips"
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_flow_log.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ provider "ibm" {

```terraform

data "ibm_is_flow_log" "is_flow_log" {
identifier = ibm_is_flow_log.test_flow_log.id
data "ibm_is_flow_log" "example" {
identifier = ibm_is_flow_log.example.id
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/is_flow_logs.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ provider "ibm" {

```terraform

data "ibm_is_flow_logs" "ds_flow_logs" {
data "ibm_is_flow_logs" "example" {
}

```
Expand Down
11 changes: 5 additions & 6 deletions website/docs/d/is_image.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,23 @@ provider "ibm" {

```terraform

data "ibm_is_image" "ds_image" {
data "ibm_is_image" "example" {
name = "centos-7.x-amd64"
}
```
```terraform

data "ibm_is_image" "ds_image1" {
identifier = "d7bec597-4726-451f-8a63-e62e6f121c32c"
data "ibm_is_image" "example" {
identifier = ibm_is_image.example.id
}
```

## Argument reference
Review the argument references that you can specify for your data source.

- `identifier` - (Optional, String) The id of the image.
**NOTE** : One of `identifier` or `name` is required
~> **Note:** `name` and `identifier` are mutually exclusive.
- `name` - (Optional, String) The name of the image.
**NOTE** : One of `identifier` or `name` is required
~> **Note:** `name` and `identifier` are mutually exclusive.
- `visibility` - (Optional, String) The visibility of the image. Accepted values are `public` or `private`.

## Attribute reference
Expand Down
42 changes: 25 additions & 17 deletions website/docs/d/is_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,55 @@ provider "ibm" {
## Example usage

```terraform
resource "ibm_is_vpc" "testacc_vpc" {
name = "testvpc"
resource "ibm_is_vpc" "example" {
name = "example-vpc"
}

resource "ibm_is_subnet" "testacc_subnet" {
name = "testsubnet"
vpc = ibm_is_vpc.testacc_vpc.id
resource "ibm_is_subnet" "example" {
name = "example-subnet"
vpc = ibm_is_vpc.example.id
zone = "us-south-1"
ipv4_cidr_block = "10.240.0.0/24"
}

resource "ibm_is_ssh_key" "testacc_sshkey" {
name = "testssh"
resource "ibm_is_ssh_key" "example" {
name = "example-ssh"
public_key = file("~/.ssh/id_rsa.pub")
}

resource "ibm_is_instance" "testacc_instance" {
name = "testinstance"
image = "a7a0626c-f97e-4180-afbe-0331ec62f32a"
resource "ibm_is_image" "example" {
name = "example-image"
href = "cos://us-south/buckettesttest/livecd.ubuntu-cpc.azure.vhd"
operating_system = "ubuntu-16-04-amd64"
encrypted_data_key = "eJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0="
encryption_key = "crn:v1:bluemix:public:kms:us-south:a/6xxxxxxxxxxxxxxx:xxxxxxx-xxxx-xxxx-xxxxxxx:key:dxxxxxx-fxxx-4xxx-9xxx-7xxxxxxxx"

}

resource "ibm_is_instance" "example" {
name = "example-instance"
image = ibm_is_image.example.id
profile = "bc1-2x8"

primary_network_interface {
subnet = ibm_is_subnet.testacc_subnet.id
subnet = ibm_is_subnet.example.id
}

network_interfaces {
name = "eth1"
subnet = ibm_is_subnet.testacc_subnet.id
subnet = ibm_is_subnet.example.id
}

vpc = ibm_is_vpc.testacc_vpc.id
vpc = ibm_is_vpc.example.id
zone = "us-south-1"
keys = [ibm_is_ssh_key.testacc_sshkey.id]
keys = [ibm_is_ssh_key.example.id]
}

data "ibm_is_instance" "ds_instance" {
name = "${ibm_is_instance.testacc_instance.name}"
data "ibm_is_instance" "example" {
name = ibm_is_instance.example.name
private_key = file("~/.ssh/id_rsa")
passphrase = ""
}

```

## Argument reference
Expand Down
47 changes: 28 additions & 19 deletions website/docs/d/is_instance_disk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,50 +23,59 @@ provider "ibm" {
## Example usage

```terraform
resource "ibm_is_vpc" "testacc_vpc" {
name = "testvpc"
resource "ibm_is_vpc" "example" {
name = "example-vpc"
}

resource "ibm_is_subnet" "testacc_subnet" {
name = "testsubnet"
vpc = ibm_is_vpc.testacc_vpc.id
resource "ibm_is_subnet" "example" {
name = "example-subnet"
vpc = ibm_is_vpc.example.id
zone = "us-south-1"
ipv4_cidr_block = "10.240.0.0/24"
}

resource "ibm_is_ssh_key" "testacc_sshkey" {
name = "testssh"
resource "ibm_is_ssh_key" "example" {
name = "example-ssh"
public_key = file("~/.ssh/id_rsa.pub")
}

resource "ibm_is_instance" "testacc_instance" {
name = "testinstance"
image = "a7a0626c-f97e-4180-afbe-0331ec62f32a"
resource "ibm_is_image" "example" {
name = "example-image"
href = "cos://us-south/buckettesttest/livecd.ubuntu-cpc.azure.vhd"
operating_system = "ubuntu-16-04-amd64"
encrypted_data_key = "eJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0="
encryption_key = "crn:v1:bluemix:public:kms:us-south:a/6xxxxxxxxxxxxxxx:xxxxxxx-xxxx-xxxx-xxxxxxx:key:dxxxxxx-fxxx-4xxx-9xxx-7xxxxxxxx"

}

resource "ibm_is_instance" "example" {
name = "example-instance"
image = ibm_is_image.example.id
profile = "bc1-2x8"

primary_network_interface {
subnet = ibm_is_subnet.testacc_subnet.id
subnet = ibm_is_subnet.example.id
}

network_interfaces {
name = "eth1"
subnet = ibm_is_subnet.testacc_subnet.id
subnet = ibm_is_subnet.example.id
}

vpc = ibm_is_vpc.testacc_vpc.id
vpc = ibm_is_vpc.example.id
zone = "us-south-1"
keys = [ibm_is_ssh_key.testacc_sshkey.id]
keys = [ibm_is_ssh_key.example.id]
}

data "ibm_is_instance" "ds_instance" {
name = "${ibm_is_instance.testacc_instance.name}"
data "ibm_is_instance" "example" {
name = "ibm_is_instance.example.name"
private_key = file("~/.ssh/id_rsa")
passphrase = ""
}

data "is_instance_disk" "is_instance_disk" {
instance = data.ibm_is_instance.ds_instance.id
disk = data.ibm_is_instance.ds_instance.disks.0.id
data "is_instance_disk" "example" {
instance = data.ibm_is_instance.example.id
disk = data.ibm_is_instance.example.disks.0.id
}
```

Expand Down
Loading