projects

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL