Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Harvey (eHealth NSW) authored and Alexander Harvey (eHealth NSW) committed Oct 6, 2024
1 parent b017c7e commit e259d05
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/resources/bigip_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ description: |-
`bigip_command` Run TMSH commands on F5 devices

This resource is helpful to send TMSH command to an BIG-IP node and returns the results read from the device
## Example Usage

## Example Usage

```hcl
resource "bigip_command" "test-command" {
commands = ["show sys version"]
}
# Create ltm node
resource "bigip_command" "test-command" {
commands = ["create ltm node 10.10.10.70"]
Expand All @@ -30,6 +29,7 @@ resource "bigip_command" "test-command" {
when = "destroy"
commands = ["delete ltm node 10.10.10.70"]
}
```

It is also possible to send Bash commands however care is needed with quoting:

Expand All @@ -51,15 +51,13 @@ resource "bigip_command" "hello-world" {
}
```

```
## Argument Reference

* `commands` - (Required) The commands to send to the remote BIG-IP device over the configured provider. The resulting output from the command is returned and added to `command_result`
* `when` - (Optional,possible values:`apply` or `destroy`) default value will be `apply`,can be set to `destroy` for terraform destroy call.
* `commands` - (Required) The commands to send to the remote BIG-IP device over the configured provider. The resulting output from the command is returned and added to `command_result`
* `when` - (Optional, possible values: `apply` or `destroy`) default value will be `apply`,can be set to `destroy` for terraform destroy call.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `command_result` - The resulting output from the `commands` executed
* `command_result` - The resulting output from the `commands` executed.

0 comments on commit e259d05

Please sign in to comment.