Skip to content

Service Plan IDs #714

Closed Locked Answered by lechnerc77
jankrieg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jankrieg ,

you can use the datasource btp_subaccount_service_plan to fetch the plan by name:

data "btp_subaccount_service_plan" "by_name" {
  subaccount_id = "6aa64c2f-38c1-49a9-b2e8-cf9fea769b7f"
  name          = "free"
  offering_name = "alert-notification"
}

The data fetched from the datasource contains the ID of the plan that you can use to create a service instance via the resource btp_subaccount_service_instance

Is this what you are looking for?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lechnerc77
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants