Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AddCannedPolicy (0.1 sec)

  1. cmd/admin-handlers-users_test.go

       "Action": [
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::testbucket"
       ]
      }
     ]
    }`)
    
    	err := s.adm.AddCannedPolicy(ctx, policy1, policyBytes)
    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	err = s.adm.AddCannedPolicy(ctx, policy2, newPolicyBytes)
    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	// 2. Verify that policy json is validated by server
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/admin-router.go

    		}
    
    		// -- IAM APIs --
    
    		// Add policy IAM
    		adminRouter.Methods(http.MethodPut).Path(adminVersion+"/add-canned-policy").HandlerFunc(adminMiddleware(adminAPI.AddCannedPolicy, traceAllFlag)).Queries("name", "{name:.*}")
    
    		// Add user IAM
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/accountinfo").HandlerFunc(adminMiddleware(adminAPI.AccountInfoHandler, traceAllFlag))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top