Mule Cloud Accounts can be setup for Basic Auth or OAuth. For OAuth, this document will assist you in preparing to connect.
As an administrator, log into your Anypoint account.
Go to connected apps (e.g. https://anypoint.mulesoft.com/accounts/connectedApps)
Click Create App.
Give it a Name.
Choose Client Credentials.
Click Add Scopes.
There are a lot of scopes, and a lot of plugin operations and ways that the plugin can be used. Choose the scopes that you need for what you want to do. Mule has pretty good explanations of what each does. If you miss a scope, you will get a 403 running the operation, and you can come back at any time and add more. If you add environments or organizations (business groups) later, you will likely need to come back and add them also. Here are some scopes that you will need for most scenarios.
Area | Scope |
---|---|
General | View Environment View Organization |
API Manager | Application Creator Application Viewer Deploy API Proxies |
Runtime Manager | Create Applications Delete Applications Read Applications Read Servers |
Choose all the relevant business groups and environments. It is recommended to have 2 clients, one for NonProdFlexDeploy and one for FlexDeploy. The non-prod FlexDeploy application that you made should not have permissions to the higher environments, as it is only for testing.
Click Next.
Click Save.