-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Partner rate_plan #1307
Comments
for each of these values (pro, biz and ent) what is the "public_name" value provided in the rate plan configuration? i don’t have access to a tenant account to confirm this so if you can provide it, we can look at adding support. |
These are the ones that are returned from the api: "rate_plan": {
"id": "partners_biz",
"public_name": "Partners Business Plan",
"currency": "USD",
"scope": "zone",
"externally_managed": false,
"sets": [
"zone",
"partner"
],
"is_contract": true
}, "rate_plan": {
"id": "partners_free",
"public_name": "Partners Free Plan",
"currency": "USD",
"scope": "zone",
"externally_managed": false,
"sets": [
"zone",
"partner"
],
"is_contract": false
}, "rate_plan": {
"id": "image_resizing_ent",
"public_name": "Image Resizing Ent",
"currency": "USD",
"scope": "user",
"externally_managed": false,
"sets": [
"usage",
"is_cloudflare",
"public"
],
"is_contract": true
}, "rate_plan": {
"id": "partners_workers_ss",
"public_name": "Cloudflare Workers",
"currency": "USD",
"scope": "user",
"externally_managed": false,
"sets": [
"usage",
"partner"
],
"is_contract": true
}, "rate_plan": {
"id": "partners_biz",
"public_name": "Partners Business Plan",
"currency": "USD",
"scope": "zone",
"externally_managed": false,
"sets": [
"zone",
"partner"
],
"is_contract": true
}, "rate_plan": {
"id": "partners_pro",
"public_name": "Partners Professional Plan",
"currency": "USD",
"scope": "zone",
"externally_managed": false,
"sets": [
"zone",
"partner"
],
"is_contract": true
}, We've since had Cloudflare enable a couple more plans, so I've added those for completness. |
thanks, I’ll see what I can do with this. |
there should be an enterprise one as well; do you have that handy? |
This is an incomplete list of partner plans but should unblock some usage and we can extend it as needed. Closes #1307
took a pass at this via #1464. you'll want to pull it locally, build it and give it a whirl before it is merged to make sure it meets your needs. |
This is an incomplete list of partner plans but should unblock some usage and we can extend it as needed. Closes #1307
Sorry I didn't get back to you, but I couldn't find when I was looking through the rate plans and subscriptions, which was odd. I don't think I've actually provisioned any enterprise accounts myself (other than the one Cloudflare setup initially) I'll try and have a look at that for you today if I can. |
This is an incomplete list of partner plans but should unblock some usage and we can extend it as needed. Closes #1307
that's fine; i just guessed as to what it should be based on the remainder. if you give the branch a go you can see if it covers your use cases anyway. |
Current Terraform and Cloudflare provider version
Description
Currently there are options to set the rate_plan on the zone settings via
plan
, however this only supportsCF_*
It would be good for use with Tenant API to add support forPARTNERS_*
.Use cases
As a user of Tenant API on Cloudflare I want to be able to configure our zones rate_plan via terraform, however we can't mimic the behaviour:
curl -sX POST https://api.cloudflare.com/client/v4/zones/${cf_zone_id}/subscription -H "Content-Type: application/json" -H "x-auth-email: ${cf_global_auth_email}" -H "x-auth-key: ${cf_global_api_key}" -d '{ "rate_plan": {"id": "PARTNERS_PRO"}}'
However using the plan option attempts to set
CF_PRO
and returns the error:This is using the Cloudflare resource
cloudflare_zone
Potential Terraform configuration
or
References
No response
The text was updated successfully, but these errors were encountered: