File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
data-sources/meshstack_payment_method
resources/meshstack_payment_method Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ Read a single payment method by workspace and identifier.
1515``` terraform
1616data "meshstack_payment_method" "example" {
1717 metadata = {
18- name = "my-payment-method"
19- owned_by_workspace = "my-workspace-identifier"
18+ name = "my-payment-method"
19+ owned_by_workspace = "my-workspace-identifier"
2020 }
2121}
2222```
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ page_title: "meshstack_payment_method Resource - terraform-provider-meshstack"
44subcategory : " "
55description : |-
66 Represents a meshStack payment method.
7+ ~> Note: Managing payment methods requires an API key with sufficient admin permissions.
78---
89
910# meshstack_payment_method (Resource)
@@ -23,8 +24,8 @@ data "meshstack_workspace" "example" {
2324
2425resource "meshstack_payment_method" "example" {
2526 metadata = {
26- name = "my-payment-method"
27- owned_by_workspace = data.meshstack_workspace.example.metadata.name
27+ name = "my-payment-method"
28+ owned_by_workspace = data.meshstack_workspace.example.metadata.name
2829 }
2930
3031 spec = {
@@ -86,6 +87,7 @@ Import is supported using the following syntax:
8687The [ ` terraform import ` command] ( https://developer.hashicorp.com/terraform/cli/commands/import ) can be used, for example:
8788
8889``` shell
90+ #! /bin/bash
8991# import via workspace and payment method identifier <workspace-identifier>.<payment-method-identifier>
9092terraform import ' meshstack_payment_method.example' ' my-workspace-identifier.my-payment-method'
9193```
Original file line number Diff line number Diff line change 11data "meshstack_payment_method" "example" {
22 metadata = {
3- name = " my-payment-method"
4- owned_by_workspace = " my-workspace-identifier"
3+ name = " my-payment-method"
4+ owned_by_workspace = " my-workspace-identifier"
55 }
66}
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ data "meshstack_workspace" "example" {
66
77resource "meshstack_payment_method" "example" {
88 metadata = {
9- name = " my-payment-method"
10- owned_by_workspace = data.meshstack_workspace.example.metadata.name
9+ name = " my-payment-method"
10+ owned_by_workspace = data.meshstack_workspace.example.metadata.name
1111 }
1212
1313 spec = {
You can’t perform that action at this time.
0 commit comments