In-For-Disaster-Analytics / cookbooks-ui

https://in-for-disaster-analytics.github.io/cookbooks-ui/
0 stars 0 forks source link

create a new system from the cookbooks #7

Closed mosoriob closed 6 months ago

mosoriob commented 6 months ago

🚀 Feature Request

The user can create a system from the systems cookbooks.

The missing information to create a Linux system is the credentials information.

Properties:

  1. username (obtained from the access_token)
  2. password (we need to ask again)

📎 Additional context

A example of the credentials creation

    const credentialDefRequest: Systems.CreateUserCredentialRequest = {
      systemId: process.env.TEST_SYSTEM_ID,
      userName: process.env.TEST_USER,
      reqCreateCredential: {
        password: process.env.TEST_PASSWORD,
      },
    };

    const apiCredentials = new Systems.CredentialsApi(configuration);
    const credentialsResponse: Systems.RespBasic =
      await apiCredentials.createUserCredential(credentialDefRequest);

image