Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ListCannedPolicies (0.36 sec)

  1. cmd/admin-handlers-users.go

    	}
    	if err = json.NewEncoder(w).Encode(newPolicies); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    }
    
    // ListCannedPolicies - GET /minio/admin/v3/list-canned-policies
    func (a adminAPIHandlers) ListCannedPolicies(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ListUserPoliciesAdminAction)
    	if objectAPI == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  2. cmd/sts-handlers_test.go

    		policies:                make(map[string][]byte),
    		ldapUserPolicyMappings:  make(map[string][]string),
    		ldapGroupPolicyMappings: make(map[string][]string),
    	}
    	policyContentMap, err := s.adm.ListCannedPolicies(ctx)
    	if err != nil {
    		c.Fatalf("import %d: Unable to list policies: %v", caseNum, err)
    	}
    	defaultCannedPolicies := set.CreateStringSet("consoleAdmin", "readwrite", "readonly",
    		"diagnostics", "writeonly")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top