Skip to content
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

Add Access Application creation support #23

Open
Maciej-Sitarz-IBM opened this issue Apr 4, 2022 · 1 comment
Open

Add Access Application creation support #23

Maciej-Sitarz-IBM opened this issue Apr 4, 2022 · 1 comment

Comments

@Maciej-Sitarz-IBM
Copy link

Cloudflare API reference for Access Application creation:
https://api.cloudflare.com/#access-applications-create-access-application

Example Cloudflare API call to create Access Application:

curl --request POST \
  --url https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/access/apps \
  --header 'Authorization: Bearer BEARER_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "ACCESS_APP_NAME",
	"logo_url": "",
	"allowed_idps": [],
	"auto_redirect_to_identity": false,
	"service_auth_401_redirect": false,
	"policies": [
		{
			"decision": "non_identity",
			"name": "POLICY_NAME",
			"include": [
				{
					"service_token": {
						"token_id": "SERVICE_TOKEN_ID"
					}
				}
			],
			"exclude": [],
			"require": [],
			"precedence": 1
		}
	],
	"session_duration": "24h",
	"app_launcher_visible": true,
	"app_groups": [],
	"selected_app_groups": [],
	"is_zt_ssh_app": false,
	"domain": "ZONE_FQDN"
}'
@robinbraemer
Copy link
Owner

pull requests are always welcomed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants