Skip to content

phoenixnap-github-actions/delete-server-bmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


phoenixnap Bare Metal Cloud
DeleteServer GitHub Action

GitHub action for deleting a Bare Metal Cloud server. This action is synchronous, while the server deletion and cleanup is asynchronous.

Bare Metal CloudDevelopers PortalKnowledge BaseSupport

⚠️ Warning: This action is dangerous. It is irrevocable and may result in data loss.

Requirements

Creating a Bare Metal Cloud account

  1. Go to the Bare Metal Cloud signup page.
  2. Follow the prompts to set up your account.
  3. Use your credentials to log in to Bare Metal Cloud portal.

▶️ Video tutorial: How to Create a Bare Metal Cloud Account

▶️ Video tutorial: Introduction to Bare Metal Cloud

Required inputs

  • 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.

Optional inputs

  • bmcentrypoint: The BMC API entrypoint. Defaults to https://api.phoenixnap.com/bmc/v1/.
  • bmctokenhost: The BMC OIDC token host. Defaults to https://auth.phoenixnap.com.
  • bmctokenpath: The BMC OIDC token path. Defaults to /auth/realms/BMC/protocol/openid-connect/token.

Outputs

  • id: The deleted server ID.

Secrets the action uses

Follow these steps to get the values for the clientid and clientsecret:

  1. Log in to the Bare Metal Cloud portal.
  2. On the left side menu, click on API Credentials.
  3. Click the Create Credentials button.
  4. Fill in the Name and Description fields, select the permissions scope and click Create.
  5. 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

Example usage

- 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 }}

Bare Metal Cloud community

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.

Resources

Documentation

Contact phoenixNAP

Get in touch with us if you have questions or need help with Bare Metal Cloud.

TwitterFacebookLinkedInInstagramYouTubeEmail


phoenixnap Bare Metal Cloud