Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "projects",
Short: "Manage GCP Projects that have Apigee enabled",
Long: "Manage GCP Projects that have Apigee enabled",
}
Cmd to manage orgs
View Source
var TestCmd = &cobra.Command{ Use: "testiam", Short: "Test IAM policy for a GCP Project", Long: "Test IAM policy for a GCP Project", Args: func(cmd *cobra.Command, args []string) (err error) { apiclient.SetProjectID(projectID) return nil }, RunE: func(cmd *cobra.Command, args []string) (err error) { u, _ := url.Parse(apiclient.CrmURL) u.Path = path.Join(u.Path, apiclient.GetProjectID()+":testIamPermissions") payload := "{\"permissions\":[\"resourcemanager.projects.get\"]}" _, err = apiclient.HttpClient(apiclient.GetPrintOutput(), u.String(), payload) return }, }
TestCmd to manage tracing of apis
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.