Creating a Bitbucket Cloud Configuration Source Provider
Create a configuration source provider in Resource Manager from Bitbucket Cloud.
Before You Begin
To connect Oracle Cloud Infrastructure Resource Manager to a Bitbucket Cloud repository, you must first create a Bitbucket Cloud API token with read scope (limited permissions).
When creating the API token:
- Use your Atlassian account email for Bitbucket API authentication.
- Store the API token in an OCI Vault secret.
- Recommended scope:
read:repository:bitbucket.
After completing all the prerequisites, follow these steps in the Console to create a configuration source provider from Bitbucket Cloud. Use the
oci resource-manager configuration-source-provider create-bitbucket-cloud-email-api-token-providercommand and required parameters to create a configuration source provider from Bitbucket Cloud.oci resource-manager configuration-source-provider create-bitbucket-cloud-email-api-token-provider --api-endpoint <Bitbucket_Cloud_service_endpoint> --secret-id <secret_OCID> --email-address <atlassian_account_email>For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Run the CreateConfigurationSourceProvider operation to create a configuration source provider from Bitbucket Cloud.
For an example of the
configSourceProviderTypepart of the request, see CreateBitbucketCloudEmailApiTokenConfigurationSourceProviderDetails Reference.