Skip to content

Commit

Permalink
Added service broker resource (#147)
Browse files Browse the repository at this point in the history
Signed-off-by: Ray <[email protected]>
Co-authored-by: Ray <[email protected]>
  • Loading branch information
Dray56 and debTheRay authored Jun 25, 2024
1 parent 58385c4 commit 448a66b
Show file tree
Hide file tree
Showing 13 changed files with 3,426 additions and 1 deletion.
53 changes: 53 additions & 0 deletions docs/resources/service_broker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
page_title: "cloudfoundry_service_broker Resource - terraform-provider-cloudfoundry"
subcategory: ""
description: |-
Provides a Cloud Foundry resource for managing service brokers
---

# cloudfoundry_service_broker (Resource)

Provides a Cloud Foundry resource for managing service brokers

## Example Usage

```terraform
resource "cloudfoundry_service_broker" "mysql" {
name = "broker"
url = "example.broker.com"
username = "test"
password = "test"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) Name of the service broker
- `password` (String, Sensitive) The password with which to authenticate against the service broker.
- `url` (String) URL of the service broker
- `username` (String) The username with which to authenticate against the service broker.

### Optional

- `annotations` (Map of String) The annotations associated with Cloud Foundry resources. Add as described [here](https://docs.cloudfoundry.org/adminguide/metadata.html#-view-metadata-for-an-object).
- `labels` (Map of String) The labels associated with Cloud Foundry resources. Add as described [here](https://docs.cloudfoundry.org/adminguide/metadata.html#-view-metadata-for-an-object).
- `space` (String) The GUID of the space the service broker is restricted to; omitted for globally available service brokers

### Read-Only

- `created_at` (String) The date and time when the resource was created in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format.
- `id` (String) The GUID of the object.
- `updated_at` (String) The date and time when the resource was updated in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format.

## Import

Import is supported using the following syntax:

```terraform
# terraform import cloudfoundry_service_broker.<resource_name> <service_broker_guid>
terraform import cloudfoundry_service_broker.service_broker 283f59d2-d660-45fb-9d96-b3e1aa92cfc7
```
3 changes: 3 additions & 0 deletions examples/resources/cloudfoundry_service_broker/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# terraform import cloudfoundry_service_broker.<resource_name> <service_broker_guid>

terraform import cloudfoundry_service_broker.service_broker 283f59d2-d660-45fb-9d96-b3e1aa92cfc7
6 changes: 6 additions & 0 deletions examples/resources/cloudfoundry_service_broker/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "cloudfoundry_service_broker" "mysql" {
name = "broker"
url = "example.broker.com"
username = "test"
password = "test"
}
Loading

0 comments on commit 448a66b

Please sign in to comment.