GitHub action for deleting a Bare Metal Cloud server. This action is synchronous, while the server deletion and cleanup is asynchronous.
Bare Metal Cloud • Developers Portal • Knowledge Base • Support
- Bare Metal Cloud (BMC) account
- Go to the Bare Metal Cloud signup page.
- Follow the prompts to set up your account.
- Use your credentials to log in to Bare Metal Cloud portal.
clientid
: Client ID from application OAuth2 credentials.clientsecret
: Client Secret from application OAuth2 credentials.serverid
: The ID for the server that you intend to delete.
bmcentrypoint
: The BMC API entrypoint. Defaults tohttps://api.phoenixnap.com/bmc/v1/
.bmctokenhost
: The BMC OIDC token host. Defaults tohttps://auth.phoenixnap.com
.bmctokenpath
: The BMC OIDC token path. Defaults to/auth/realms/BMC/protocol/openid-connect/token
.
id
: The deleted server ID.
Follow these steps to get the values for the clientid
and clientsecret
:
- Log in to the Bare Metal Cloud portal.
- On the left side menu, click on API Credentials.
- Click the Create Credentials button.
- Fill in the Name and Description fields, select the permissions scope and click Create.
- In the table, click on Actions and select View Credentials from the dropdown to view the Client ID and Client Secret.
You should store those credentials as GitHub Secrets and use them in the clientid
and clientsecret
required inputs.
Bare Metal Cloud Quick Start Guide: https://developers.phoenixnap.com/quick-start
- name: DeleteServer step
uses: phoenixnap-github-actions/delete-server-bmc
id: deleteserver
with:
clientid: ${{secrets.BMC_CLIENT_ID}}
clientsecret: ${{secrets.BMC_CLIENT_SECRET}}
serverid: ${{ steps.createserver.outputs.id }}
Become part of the Bare Metal Cloud community to get updates on new features, help us improve the platform, and engage with developers and other users.
- Follow @phoenixNAP on Twitter
- Join the official Slack channel
- Sign up for our Developers Monthly newsletter
Get in touch with us if you have questions or need help with Bare Metal Cloud.