You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support Transaction-Id in our service Terraform Provider, I need to do following steps:
Get transaction-id in xxxCreate method:
if _, ok := d.GetOk("transaction_id"); ok {
createRuleOptions.SetTransactionID(d.Get("transaction_id").(string))
}
In xxxRead method. I retrieve transaction-id passed in from xxxCreate, and set getxxxOptions object which is used to read the resource back:
if _, ok := d.GetOk("transaction_id"); ok {
transactionIDFromInput = d.Get("transaction_id").(string)
getRuleOptions.SetTransactionID(transactionIDFromInput)
}
In xxxRead method read the transaction-id from response, and set call d.Set
Some SDKs permit users to enter a custom header
Transaction-Id
for debugging purpose, for exampleIAM Policy Management
:https://test.cloud.ibm.com/apidocs/iam-policy-management#additional-headers
but this service's Terraform Provider's resource creation does not support header
Transaction-Id
https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/resource_ibm_iam_user_policy.go
Question: Does IBM Terraform Provider support custom header, i.e.
Transaction-Id
?It seems Google's Terraform Provider support custom header:
hashicorp/terraform-provider-google#7299
The text was updated successfully, but these errors were encountered: