Adding a Credential

Add fleet, resource, and target credentials to a fleet in Fleet Application Management.

    1. Open the navigation menu and click Observability & Management. Under Fleet Application Management, click Fleets.
    2. Click the name of the fleet that you want.
      Tip

      To find a fleet by name, enter its name in the Search field.
    3. Under Resources (on the left side of the page), click Credentials.
    4. To add fleet credentials, click Add fleet credentials under Fleet credentials.
    5. Select one of the following options under Encryption type:
      • Encrypt credentials using vault key: Select this option to enter credentials for the application and use the vault master encryption keys stored in Vault keys to encrypt these credentials. Skip to step 6.
      • Use secrets for credentials: Select this option to use Fleet Application Management application-specific credentials that are already stored with Vault secrets. When information is sensitive, use this option. Skip to step 7.
    6. If you selected Encrypt credentials using vault key for Encryption type, follow these steps:
      • From the list of vaults in the compartment, select a vault name.
      • Click Master encryption key and then select the name of the key.
      • Enter the username to use for the administrative server or managed server.
      • Enter the password to use for the username that you specified and then enter it again to confirm it.
    7. If you selected Use secrets for credentials for Encryption type, follow these steps:
      • Enter the username to use for the administrative server or managed server and select the password from the Vault service.
      • To use credentials stored in Vault, select the Get username from vault checkbox. Then, select a username and password and their corresponding secrets from Vault.
    8. (Optional) For the context variable of an application, specify the application's name, the URL used to access the application form, and any extra relevant data such as URI. For example, if the URL is https://apps.oci.oraclecloud.com/myapp1, the name can be myapp with the corresponding value including other URI information such as, /myapp1. Add more context variables as required.
    9. Click Add.
      The credentials are added to the fleet.
    10. To add resource credentials, click Add resource credentials under Resource credentials.
    11. In the Add resource credentials dialog box, select a credential name that's defined under product metadata management.
      The resources that match the credential appear under Select resources.
    12. To add credentials for specific resources, select the checkbox next to the resources and click Select.
      Tip

      To find a resource by name, enter its name in the Search field.
    13. Perform steps 5 to 7 and select Add to add resource-specific credentials.
      Ensure you add credentials for product-specific resources in step 5.
    14. To add target credentials, click Add target credentials under Target credentials.
    15. In the Add target credentials dialog box, select a credential name that's defined under product metadata management.
      The resources that match the credential appear under Select targets. For example, Oracle Java or Oracle WebLogic products.
    16. To add credentials for specific targets, select the checkbox next to the resources and their corresponding targets. Then, click Select.
      Tip

      To find a resource by name, enter its name in the Search field.
    17. Perform steps 5 to 7 and click Add to add credentials for a target.
      Ensure you enter credentials for product-specific targets in step 5.
  • Use the oci fleet-apps-management fleet-credential create command and required parameters to add credentials for a fleet to access resources:

    oci fleet-apps-management fleet-credential create [OPTIONS]

    For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.

  • Run the CreateFleetCredential operation to add credentials for a fleet to access resources.