async createSecret()

in src/lib/service/custos-service/custos-service-entities/custos-service-entities-secrets-ssh.js [17:31]


    async createSecret({clientId, description, ownerId}) {
        const axiosInstance = await this.custosService.axiosInstance;
        const {data: {token}} = await axiosInstance.post(
            `${CustosService.ENDPOINTS.SECRETS}/secret/ssh`,
            {
                "metadata": {
                    "client_id": clientId,
                    "description": description,
                    "owner_id": ownerId
                }
            }
        );
        const entityId = token;
        return entityId;
    }