mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: RBAC provisionerdaemons and parameters (#1755)
* chore: Remove org_id from provisionerdaemons
This commit is contained in:
@ -90,9 +90,9 @@ func (c *Client) Organization(ctx context.Context, id uuid.UUID) (Organization,
|
||||
}
|
||||
|
||||
// ProvisionerDaemonsByOrganization returns provisioner daemons available for an organization.
|
||||
func (c *Client) ProvisionerDaemonsByOrganization(ctx context.Context, organizationID uuid.UUID) ([]ProvisionerDaemon, error) {
|
||||
func (c *Client) ProvisionerDaemons(ctx context.Context) ([]ProvisionerDaemon, error) {
|
||||
res, err := c.Request(ctx, http.MethodGet,
|
||||
fmt.Sprintf("/api/v2/organizations/%s/provisionerdaemons", organizationID.String()),
|
||||
"/api/v2/provisionerdaemons",
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user