{"modulePath":"code.cloudfoundry.org/cli/v9","version":"v9.0.0-20261204070313-55d4556c1791","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package internal\n\n## Constants\n\n```go\nconst (\n\tDeleteRoutePolicyRequest                                    = \"DeleteRoutePolicyRequest\"\n\tDeleteApplicationProcessInstanceRequest                     = \"DeleteApplicationProcessInstance\"\n\tDeleteApplicationRequest                                    = \"DeleteApplication\"\n\tDeleteBuildpackRequest                                      = \"DeleteBuildpack\"\n\tDeleteDomainRequest                                         = \"DeleteDomainRequest\"\n\tDeleteIsolationSegmentRelationshipOrganizationRequest       = \"DeleteIsolationSegmentRelationshipOrganization\"\n\tDeleteIsolationSegmentRequest                               = \"DeleteIsolationSegment\"\n\tDeleteOrganizationRequest                                   = \"DeleteOrganization\"\n\tDeleteOrganizationQuotaRequest                              = \"DeleteOrganizationQuota\"\n\tDeleteOrphanedRoutesRequest                                 = \"DeleteOrphanedRoutes\"\n\tDeleteRoleRequest                                           = \"DeleteRoleRequest\"\n\tDeleteRouteRequest                                          = \"DeleteRouteRequest\"\n\tDeleteRouteBindingRequest                                   = \"DeleteRouteBinding\"\n\tDeleteSecurityGroupRequest                                  = \"DeleteSecurityGroup\"\n\tDeleteSecurityGroupStagingSpaceRequest                      = \"DeleteSecurityGroupStagingSpace\"\n\tDeleteSecurityGroupRunningSpaceRequest                      = \"DeleteSecurityGroupRunningSpace\"\n\tDeleteServiceCredentialBindingRequest                       = \"DeleteServiceCredentialBinding\"\n\tDeleteServiceBrokerRequest                                  = \"DeleteServiceBrokerRequest\"\n\tDeleteServiceInstanceRelationshipsSharedSpaceRequest        = \"DeleteServiceInstanceRelationshipsSharedSpace\"\n\tDeleteServiceInstanceRequest                                = \"DeleteServiceInstance\"\n\tDeleteServiceOfferingRequest                                = \"DeleteServiceOffering\"\n\tDeleteServicePlanVisibilityRequest                          = \"DeleteServicePlanVisibility\"\n\tDeleteSharedOrgFromDomainRequest                            = \"DeleteSharedOrgFromDomain\"\n\tDeleteSpaceQuotaRequest                                     = \"DeleteSpaceQuota\"\n\tDeleteSpaceRequest                                          = \"DeleteSpace\"\n\tDeleteSpaceQuotaFromSpaceRequest                            = \"DeleteSpaceQuotaFromSpace\"\n\tDeleteUserRequest                                           = \"DeleteUser\"\n\tGetRoutePolicyRequest                                       = \"GetRoutePolicyRequest\"\n\tGetRoutePoliciesRequest                                     = \"GetRoutePoliciesRequest\"\n\tGetApplicationDropletCurrentRequest                         = \"GetApplicationDropletCurrent\"\n\tGetApplicationEnvRequest                                    = \"GetApplicationEnv\"\n\tGetApplicationFeaturesRequest                               = \"GetApplicationFeatures\"\n\tGetApplicationManifestRequest                               = \"GetApplicationManifest\"\n\tGetApplicationProcessRequest                                = \"GetApplicationProcess\"\n\tGetApplicationProcessesRequest                              = \"GetApplicationProcesses\"\n\tGetApplicationRevisionsRequest                              = \"GetApplicationRevisions\"\n\tGetApplicationRevisionsDeployedRequest                      = \"GetApplicationRevisionsDeployed\"\n\tGetApplicationRoutesRequest                                 = \"GetApplicationRoutes\"\n\tGetApplicationTasksRequest                                  = \"GetApplicationTasks\"\n\tGetApplicationsRequest                                      = \"GetApplications\"\n\tGetBuildRequest                                             = \"GetBuild\"\n\tGetBuildpacksRequest                                        = \"GetBuildpacks\"\n\tGetDefaultDomainRequest                                     = \"GetDefaultDomain\"\n\tGetDeploymentRequest                                        = \"GetDeployment\"\n\tGetDeploymentsRequest                                       = \"GetDeployments\"\n\tGetDomainRequest                                            = \"GetDomain\"\n\tGetDomainRouteReservationsRequest                           = \"GetDomainRouteReservations\"\n\tGetDomainsRequest                                           = \"GetDomains\"\n\tGetDropletRequest                                           = \"GetDroplet\"\n\tGetDropletsRequest                                          = \"GetDroplets\"\n\tGetDropletBitsRequest                                       = \"GetDropletBits\"\n\tGetEnvironmentVariableGroupRequest                          = \"GetEnvironmentVariableGroup\"\n\tGetEventsRequest                                            = \"GetEvents\"\n\tGetFeatureFlagRequest                                       = \"GetFeatureFlag\"\n\tGetFeatureFlagsRequest                                      = \"GetFeatureFlags\"\n\tGetIsolationSegmentOrganizationsRequest                     = \"GetIsolationSegmentOrganizations\"\n\tGetIsolationSegmentRequest                                  = \"GetIsolationSegment\"\n\tGetIsolationSegmentsRequest                                 = \"GetIsolationSegments\"\n\tGetOrganizationDomainsRequest                               = \"GetOrganizationDomains\"\n\tGetOrganizationQuotasRequest                                = \"GetOrganizationQuotas\"\n\tGetOrganizationQuotaRequest                                 = \"GetOrganizationQuota\"\n\tGetOrganizationRelationshipDefaultIsolationSegmentRequest   = \"GetOrganizationRelationshipDefaultIsolationSegment\"\n\tGetOrganizationRequest                                      = \"GetOrganization\"\n\tGetOrganizationsRequest                                     = \"GetOrganizations\"\n\tGetPackageRequest                                           = \"GetPackage\"\n\tGetPackagesRequest                                          = \"GetPackages\"\n\tGetPackageDropletsRequest                                   = \"GetPackageDroplets\"\n\tGetProcessRequest                                           = \"GetProcess\"\n\tGetProcessesRequest                                         = \"GetProcesses\"\n\tGetProcessStatsRequest                                      = \"GetProcessStats\"\n\tGetProcessSidecarsRequest                                   = \"GetProcessSidecars\"\n\tGetRolesRequest                                             = \"GetRoles\"\n\tGetRouteBindingsRequest                                     = \"GetRouteBindings\"\n\tGetRouteDestinationsRequest                                 = \"GetRouteDestinations\"\n\tGetRoutesRequest                                            = \"GetRoutes\"\n\tGetSecurityGroupsRequest                                    = \"GetSecurityGroups\"\n\tGetServiceBrokersRequest                                    = \"GetServiceBrokers\"\n\tGetServiceCredentialBindingsRequest                         = \"GetServiceCredentialBindings\"\n\tGetServiceCredentialBindingDetailsRequest                   = \"GetServiceCredentialBindingDetails\"\n\tGetServiceInstanceParametersRequest                         = \"GetServiceInstanceParameters\"\n\tGetServiceInstanceRequest                                   = \"GetServiceInstance\"\n\tGetServiceInstancesRequest                                  = \"GetServiceInstances\"\n\tGetServiceInstanceRelationshipsSharedSpacesRequest          = \"GetServiceInstanceRelationshipSharedSpacesRequest\"\n\tGetServiceInstanceSharedSpacesUsageSummaryRequest           = \"GetServiceInstanceSharedSpacesUsageSummaryRequest\"\n\tGetServiceOfferingRequest                                   = \"GetServiceOffering\"\n\tGetServiceOfferingsRequest                                  = \"GetServiceOfferings\"\n\tGetServicePlanRequest                                       = \"GetServicePlan\"\n\tGetServicePlansRequest                                      = \"GetServicePlans\"\n\tGetServicePlanVisibilityRequest                             = \"GetServicePlanVisibility\"\n\tGetSpaceFeatureRequest                                      = \"GetSpaceFeatureRequest\"\n\tGetSpaceRelationshipIsolationSegmentRequest                 = \"GetSpaceRelationshipIsolationSegment\"\n\tGetSpaceRunningSecurityGroupsRequest                        = \"GetSpaceRunningSecurityGroups\"\n\tGetSpacesRequest                                            = \"GetSpaces\"\n\tGetSpaceQuotaRequest                                        = \"GetSpaceQuota\"\n\tGetSpaceQuotasRequest                                       = \"GetSpaceQuotas\"\n\tGetSpaceStagingSecurityGroupsRequest                        = \"GetSpaceStagingSecurityGroups\"\n\tGetSSHEnabled                                               = \"GetSSHEnabled\"\n\tGetStacksRequest                                            = \"GetStacks\"\n\tGetTaskRequest                                              = \"GetTask\"\n\tGetUserRequest                                              = \"GetUser\"\n\tGetUsersRequest                                             = \"GetUsers\"\n\tMapRouteRequest                                             = \"MapRoute\"\n\tUpdateRouteRequest                                          = \"UpdateRoute\"\n\tPatchApplicationCurrentDropletRequest                       = \"PatchApplicationCurrentDroplet\"\n\tPatchApplicationEnvironmentVariablesRequest                 = \"PatchApplicationEnvironmentVariables\"\n\tPatchApplicationRequest                                     = \"PatchApplication\"\n\tPatchApplicationFeaturesRequest                             = \"PatchApplicationFeatures\"\n\tPatchEnvironmentVariableGroupRequest                        = \"PatchEnvironmentVariableGroup\"\n\tPatchBuildpackRequest                                       = \"PatchBuildpack\"\n\tPatchDestinationRequest                                     = \"PatchDestination\"\n\tPatchDomainRequest                                          = \"PatchDomain\"\n\tPatchFeatureFlagRequest                                     = \"PatchFeatureFlag\"\n\tPatchOrganizationRelationshipDefaultIsolationSegmentRequest = \"PatchOrganizationRelationshipDefaultIsolationSegment\"\n\tPatchOrganizationRequest                                    = \"PatchOrganization\"\n\tPatchOrganizationQuotaRequest                               = \"PatchOrganizationQuota\"\n\tPatchProcessRequest                                         = \"PatchProcess\"\n\tPatchRouteRequest                                           = \"PatchRoute\"\n\tPatchSecurityGroupRequest                                   = \"PatchSecurityGroup\"\n\tPatchServiceBrokerRequest                                   = \"PatchServiceBrokerRequest\"\n\tPatchServiceInstanceRequest                                 = \"PatchServiceInstance\"\n\tPatchServiceOfferingRequest                                 = \"PatchServiceOfferingRequest\"\n\tPatchServicePlanRequest                                     = \"PatchServicePlanRequest\"\n\tPatchSpaceRelationshipIsolationSegmentRequest               = \"PatchSpaceRelationshipIsolationSegment\"\n\tPatchSpaceRequest                                           = \"PatchSpace\"\n\tPatchSpaceFeaturesRequest                                   = \"PatchSpaceFeatures\"\n\tPatchSpaceQuotaRequest                                      = \"PatchSpaceQuota\"\n\tPatchStackRequest                                           = \"PatchStack\"\n\tPatchMoveRouteRequest                                       = \"PatchMoveRouteRequest\"\n\tPatchRoutePolicyRequest                                     = \"PatchRoutePolicyRequest\"\n\tPostRoutePolicyRequest                                      = \"PostRoutePolicyRequest\"\n\tPostApplicationActionApplyManifest                          = \"PostApplicationActionApplyM\"\n\tPostApplicationActionRestartRequest                         = \"PostApplicationActionRestart\"\n\tPostApplicationActionStartRequest                           = \"PostApplicationActionStart\"\n\tPostApplicationActionStopRequest                            = \"PostApplicationActionStop\"\n\tPostApplicationDeploymentActionCancelRequest                = \"PostApplicationDeploymentActionCancel\"\n\tPostApplicationDeploymentActionContinueRequest              = \"PostApplicationDeploymentActionContinue\"\n\tPostApplicationDeploymentRequest                            = \"PostApplicationDeployment\"\n\tPostApplicationProcessActionScaleRequest                    = \"PostApplicationProcessActionScale\"\n\tPostApplicationRequest                                      = \"PostApplication\"\n\tPostApplicationTasksRequest                                 = \"PostApplicationTasks\"\n\tPostBuildRequest                                            = \"PostBuild\"\n\tPostBuildpackBitsRequest                                    = \"PostBuildpackBits\"\n\tPostBuildpackRequest                                        = \"PostBuildpack\"\n\tPostDomainRequest                                           = \"PostDomain\"\n\tPostDropletBitsRequest                                      = \"PostDropletBits\"\n\tPostDropletRequest                                          = \"PostDroplet\"\n\tPostIsolationSegmentRelationshipOrganizationsRequest        = \"PostIsolationSegmentRelationshipOrganizations\"\n\tPostIsolationSegmentsRequest                                = \"PostIsolationSegments\"\n\tPostOrganizationRequest                                     = \"PostOrganization\"\n\tPostOrganizationQuotaRequest                                = \"PostOrganizationQuota\"\n\tPostOrganizationQuotaApplyRequest                           = \"PostOrganizationQuotaApply\"\n\tPostPackageRequest                                          = \"PostPackage\"\n\tPostPackageBitsRequest                                      = \"PostPackageBits\"\n\tPostResourceMatchesRequest                                  = \"PostResourceMatches\"\n\tPostRoleRequest                                             = \"PostRole\"\n\tPostRouteRequest                                            = \"PostRoute\"\n\tPostRouteBindingRequest                                     = \"PostRouteBinding\"\n\tPostSecurityGroupRequest                                    = \"PostSecurityGroup\"\n\tPostSecurityGroupStagingSpaceRequest                        = \"PostSecurityGroupStagingSpace\"\n\tPostSecurityGroupRunningSpaceRequest                        = \"PostSecurityGroupRunningSpace\"\n\tPostServiceCredentialBindingRequest                         = \"PostServiceCredentialBinding\"\n\tPostServiceBrokerRequest                                    = \"PostServiceBroker\"\n\tPostServiceInstanceRequest                                  = \"PostServiceInstance\"\n\tPostServiceInstanceRelationshipsSharedSpacesRequest         = \"PostServiceInstanceRelationshipsSharedSpaces\"\n\tPostServicePlanVisibilityRequest                            = \"PostServicePlanVisibility\"\n\tPostSpaceActionApplyManifestRequest                         = \"PostSpaceActionApplyManifest\"\n\tPostSpaceDiffManifestRequest                                = \"PostSpaceDiffManifest\"\n\tPostSpaceRequest                                            = \"PostSpace\"\n\tPostSpaceQuotaRequest                                       = \"PostSpaceQuota\"\n\tPostSpaceQuotaRelationshipsRequest                          = \"PostSpaceQuotaRelationships\"\n\tPostUserRequest                                             = \"PostUser\"\n\tPutTaskCancelRequest                                        = \"PutTaskCancel\"\n\tSharePrivateDomainRequest                                   = \"SharePrivateDomainRequest\"\n\tShareRouteRequest                                           = \"ShareRouteRequest\"\n\tUnmapRouteRequest                                           = \"UnmapRoute\"\n\tUnshareRouteRequest                                         = \"UnshareRoute\"\n\tWhoAmI                                                      = \"WhoAmI\"\n\tInfo                                                        = \"Info\"\n)\n```\nNaming convention:\n\nHTTP method + non-parameter parts of the path + \"Request\"\n\nIf the request returns a single entity by GUID, use the singular (for example /v3/organizations/:organization\\_guid is GetOrganization).\n\n## Variables\n\n```go\nvar APIRoutes = map[string]Route{\n\tGetRoutePoliciesRequest:                                     {Path: \"/v3/route_policies\", Method: http.MethodGet},\n\tPostRoutePolicyRequest:                                      {Path: \"/v3/route_policies\", Method: http.MethodPost},\n\tGetRoutePolicyRequest:                                       {Path: \"/v3/route_policies/:route_policy_guid\", Method: http.MethodGet},\n\tDeleteRoutePolicyRequest:                                    {Path: \"/v3/route_policies/:route_policy_guid\", Method: http.MethodDelete},\n\tPatchRoutePolicyRequest:                                     {Path: \"/v3/route_policies/:route_policy_guid\", Method: http.MethodPatch},\n\tGetApplicationsRequest:                                      {Path: \"/v3/apps\", Method: http.MethodGet},\n\tPostApplicationRequest:                                      {Path: \"/v3/apps\", Method: http.MethodPost},\n\tDeleteApplicationRequest:                                    {Path: \"/v3/apps/:app_guid\", Method: http.MethodDelete},\n\tPatchApplicationRequest:                                     {Path: \"/v3/apps/:app_guid\", Method: http.MethodPatch},\n\tPatchApplicationFeaturesRequest:                             {Path: \"/v3/apps/:app_guid/features/:name\", Method: http.MethodPatch},\n\tGetApplicationFeaturesRequest:                               {Path: \"/v3/apps/:app_guid/features/:name\", Method: http.MethodGet},\n\tPostApplicationActionApplyManifest:                          {Path: \"/v3/apps/:app_guid/actions/apply_manifest\", Method: http.MethodPost},\n\tPostApplicationActionRestartRequest:                         {Path: \"/v3/apps/:app_guid/actions/restart\", Method: http.MethodPost},\n\tPostApplicationActionStartRequest:                           {Path: \"/v3/apps/:app_guid/actions/start\", Method: http.MethodPost},\n\tPostApplicationActionStopRequest:                            {Path: \"/v3/apps/:app_guid/actions/stop\", Method: http.MethodPost},\n\tGetApplicationDropletCurrentRequest:                         {Path: \"/v3/apps/:app_guid/droplets/current\", Method: http.MethodGet},\n\tGetApplicationEnvRequest:                                    {Path: \"/v3/apps/:app_guid/env\", Method: http.MethodGet},\n\tPatchApplicationEnvironmentVariablesRequest:                 {Path: \"/v3/apps/:app_guid/environment_variables\", Method: http.MethodPatch},\n\tGetApplicationManifestRequest:                               {Path: \"/v3/apps/:app_guid/manifest\", Method: http.MethodGet},\n\tGetApplicationProcessesRequest:                              {Path: \"/v3/apps/:app_guid/processes\", Method: http.MethodGet},\n\tGetApplicationProcessRequest:                                {Path: \"/v3/apps/:app_guid/processes/:type\", Method: http.MethodGet},\n\tPostApplicationProcessActionScaleRequest:                    {Path: \"/v3/apps/:app_guid/processes/:type/actions/scale\", Method: http.MethodPost},\n\tDeleteApplicationProcessInstanceRequest:                     {Path: \"/v3/apps/:app_guid/processes/:type/instances/:index\", Method: http.MethodDelete},\n\tPatchApplicationCurrentDropletRequest:                       {Path: \"/v3/apps/:app_guid/relationships/current_droplet\", Method: http.MethodPatch},\n\tGetApplicationRevisionsRequest:                              {Path: \"/v3/apps/:app_guid/revisions\", Method: http.MethodGet},\n\tGetApplicationRevisionsDeployedRequest:                      {Path: \"/v3/apps/:app_guid/revisions/deployed\", Method: http.MethodGet},\n\tGetApplicationRoutesRequest:                                 {Path: \"/v3/apps/:app_guid/routes\", Method: http.MethodGet},\n\tGetSSHEnabled:                                               {Path: \"/v3/apps/:app_guid/ssh_enabled\", Method: http.MethodGet},\n\tGetApplicationTasksRequest:                                  {Path: \"/v3/apps/:app_guid/tasks\", Method: http.MethodGet},\n\tPostApplicationTasksRequest:                                 {Path: \"/v3/apps/:app_guid/tasks\", Method: http.MethodPost},\n\tGetBuildpacksRequest:                                        {Path: \"/v3/buildpacks\", Method: http.MethodGet},\n\tPostBuildpackRequest:                                        {Path: \"/v3/buildpacks/\", Method: http.MethodPost},\n\tDeleteBuildpackRequest:                                      {Path: \"/v3/buildpacks/:buildpack_guid\", Method: http.MethodDelete},\n\tPatchBuildpackRequest:                                       {Path: \"/v3/buildpacks/:buildpack_guid\", Method: http.MethodPatch},\n\tPostBuildpackBitsRequest:                                    {Path: \"/v3/buildpacks/:buildpack_guid/upload\", Method: http.MethodPost},\n\tPostBuildRequest:                                            {Path: \"/v3/builds\", Method: http.MethodPost},\n\tGetBuildRequest:                                             {Path: \"/v3/builds/:build_guid\", Method: http.MethodGet},\n\tGetDeploymentsRequest:                                       {Path: \"/v3/deployments\", Method: http.MethodGet},\n\tPostApplicationDeploymentRequest:                            {Path: \"/v3/deployments\", Method: http.MethodPost},\n\tGetDeploymentRequest:                                        {Path: \"/v3/deployments/:deployment_guid\", Method: http.MethodGet},\n\tPostApplicationDeploymentActionCancelRequest:                {Path: \"/v3/deployments/:deployment_guid/actions/cancel\", Method: http.MethodPost},\n\tPostApplicationDeploymentActionContinueRequest:              {Path: \"/v3/deployments/:deployment_guid/actions/continue\", Method: http.MethodPost},\n\tGetDomainsRequest:                                           {Path: \"/v3/domains\", Method: http.MethodGet},\n\tPostDomainRequest:                                           {Path: \"/v3/domains\", Method: http.MethodPost},\n\tDeleteDomainRequest:                                         {Path: \"/v3/domains/:domain_guid\", Method: http.MethodDelete},\n\tGetDomainRequest:                                            {Path: \"/v3/domains/:domain_guid\", Method: http.MethodGet},\n\tPatchDomainRequest:                                          {Path: \"/v3/domains/:domain_guid\", Method: http.MethodPatch},\n\tSharePrivateDomainRequest:                                   {Path: \"/v3/domains/:domain_guid/relationships/shared_organizations\", Method: http.MethodPost},\n\tDeleteSharedOrgFromDomainRequest:                            {Path: \"/v3/domains/:domain_guid/relationships/shared_organizations/:org_guid\", Method: http.MethodDelete},\n\tGetDomainRouteReservationsRequest:                           {Path: \"/v3/domains/:domain_guid/route_reservations\", Method: http.MethodGet},\n\tGetDropletsRequest:                                          {Path: \"/v3/droplets\", Method: http.MethodGet},\n\tPostDropletRequest:                                          {Path: \"/v3/droplets\", Method: http.MethodPost},\n\tGetDropletRequest:                                           {Path: \"/v3/droplets/:droplet_guid\", Method: http.MethodGet},\n\tPostDropletBitsRequest:                                      {Path: \"/v3/droplets/:droplet_guid/upload\", Method: http.MethodPost},\n\tGetDropletBitsRequest:                                       {Path: \"/v3/droplets/:droplet_guid/download\", Method: http.MethodGet},\n\tGetEnvironmentVariableGroupRequest:                          {Path: \"/v3/environment_variable_groups/:group_name\", Method: http.MethodGet},\n\tPatchEnvironmentVariableGroupRequest:                        {Path: \"/v3/environment_variable_groups/:group_name\", Method: http.MethodPatch},\n\tGetEventsRequest:                                            {Path: \"/v3/audit_events\", Method: http.MethodGet},\n\tGetFeatureFlagsRequest:                                      {Path: \"/v3/feature_flags\", Method: http.MethodGet},\n\tGetFeatureFlagRequest:                                       {Path: \"/v3/feature_flags/:name\", Method: http.MethodGet},\n\tPatchFeatureFlagRequest:                                     {Path: \"/v3/feature_flags/:name\", Method: http.MethodPatch},\n\tGetIsolationSegmentsRequest:                                 {Path: \"/v3/isolation_segments\", Method: http.MethodGet},\n\tPostIsolationSegmentsRequest:                                {Path: \"/v3/isolation_segments\", Method: http.MethodPost},\n\tDeleteIsolationSegmentRequest:                               {Path: \"/v3/isolation_segments/:isolation_segment_guid\", Method: http.MethodDelete},\n\tGetIsolationSegmentRequest:                                  {Path: \"/v3/isolation_segments/:isolation_segment_guid\", Method: http.MethodGet},\n\tGetIsolationSegmentOrganizationsRequest:                     {Path: \"/v3/isolation_segments/:isolation_segment_guid/organizations\", Method: http.MethodGet},\n\tPostIsolationSegmentRelationshipOrganizationsRequest:        {Path: \"/v3/isolation_segments/:isolation_segment_guid/relationships/organizations\", Method: http.MethodPost},\n\tDeleteIsolationSegmentRelationshipOrganizationRequest:       {Path: \"/v3/isolation_segments/:isolation_segment_guid/relationships/organizations/:organization_guid\", Method: http.MethodDelete},\n\tGetOrganizationsRequest:                                     {Path: \"/v3/organizations\", Method: http.MethodGet},\n\tPostOrganizationRequest:                                     {Path: \"/v3/organizations\", Method: http.MethodPost},\n\tGetOrganizationRequest:                                      {Path: \"/v3/organizations/:organization_guid\", Method: http.MethodGet},\n\tDeleteOrganizationRequest:                                   {Path: \"/v3/organizations/:organization_guid/\", Method: http.MethodDelete},\n\tPatchOrganizationRequest:                                    {Path: \"/v3/organizations/:organization_guid/\", Method: http.MethodPatch},\n\tGetOrganizationDomainsRequest:                               {Path: \"/v3/organizations/:organization_guid/domains\", Method: http.MethodGet},\n\tGetDefaultDomainRequest:                                     {Path: \"/v3/organizations/:organization_guid/domains/default\", Method: http.MethodGet},\n\tGetOrganizationRelationshipDefaultIsolationSegmentRequest:   {Path: \"/v3/organizations/:organization_guid/relationships/default_isolation_segment\", Method: http.MethodGet},\n\tPatchOrganizationRelationshipDefaultIsolationSegmentRequest: {Path: \"/v3/organizations/:organization_guid/relationships/default_isolation_segment\", Method: http.MethodPatch},\n\tPatchOrganizationQuotaRequest:                               {Path: \"/v3/organization_quotas/:quota_guid\", Method: http.MethodPatch},\n\tPostOrganizationQuotaRequest:                                {Path: \"/v3/organization_quotas\", Method: http.MethodPost},\n\tPostOrganizationQuotaApplyRequest:                           {Path: \"/v3/organization_quotas/:quota_guid/relationships/organizations\", Method: http.MethodPost},\n\tGetOrganizationQuotaRequest:                                 {Path: \"/v3/organization_quotas/:quota_guid\", Method: http.MethodGet},\n\tGetOrganizationQuotasRequest:                                {Path: \"/v3/organization_quotas\", Method: http.MethodGet},\n\tDeleteOrganizationQuotaRequest:                              {Path: \"/v3/organization_quotas/:quota_guid\", Method: http.MethodDelete},\n\tGetPackagesRequest:                                          {Path: \"/v3/packages\", Method: http.MethodGet},\n\tPostPackageRequest:                                          {Path: \"/v3/packages\", Method: http.MethodPost},\n\tGetPackageRequest:                                           {Path: \"/v3/packages/:package_guid\", Method: http.MethodGet},\n\tPostPackageBitsRequest:                                      {Path: \"/v3/packages/:package_guid/upload\", Method: http.MethodPost},\n\tGetPackageDropletsRequest:                                   {Path: \"/v3/packages/:package_guid/droplets\", Method: http.MethodGet},\n\tGetProcessRequest:                                           {Path: \"/v3/processes/:process_guid\", Method: http.MethodGet},\n\tGetProcessesRequest:                                         {Path: \"/v3/processes\", Method: http.MethodGet},\n\tPatchProcessRequest:                                         {Path: \"/v3/processes/:process_guid\", Method: http.MethodPatch},\n\tGetProcessStatsRequest:                                      {Path: \"/v3/processes/:process_guid/stats\", Method: http.MethodGet},\n\tGetProcessSidecarsRequest:                                   {Path: \"/v3/processes/:process_guid/sidecars\", Method: http.MethodGet},\n\tPostResourceMatchesRequest:                                  {Path: \"/v3/resource_matches\", Method: http.MethodPost},\n\tGetRolesRequest:                                             {Path: \"/v3/roles\", Method: http.MethodGet},\n\tPostRoleRequest:                                             {Path: \"/v3/roles\", Method: http.MethodPost},\n\tDeleteRoleRequest:                                           {Path: \"/v3/roles/:role_guid\", Method: http.MethodDelete},\n\tGetRoutesRequest:                                            {Path: \"/v3/routes\", Method: http.MethodGet},\n\tPostRouteRequest:                                            {Path: \"/v3/routes\", Method: http.MethodPost},\n\tDeleteRouteRequest:                                          {Path: \"/v3/routes/:route_guid\", Method: http.MethodDelete},\n\tPatchRouteRequest:                                           {Path: \"/v3/routes/:route_guid\", Method: http.MethodPatch},\n\tGetRouteDestinationsRequest:                                 {Path: \"/v3/routes/:route_guid/destinations\", Method: http.MethodGet},\n\tMapRouteRequest:                                             {Path: \"/v3/routes/:route_guid/destinations\", Method: http.MethodPost},\n\tUpdateRouteRequest:                                          {Path: \"/v3/routes/:route_guid\", Method: http.MethodPatch},\n\tUnmapRouteRequest:                                           {Path: \"/v3/routes/:route_guid/destinations/:destination_guid\", Method: http.MethodDelete},\n\tPatchDestinationRequest:                                     {Path: \"/v3/routes/:route_guid/destinations/:destination_guid\", Method: http.MethodPatch},\n\tShareRouteRequest:                                           {Path: \"/v3/routes/:route_guid/relationships/shared_spaces\", Method: http.MethodPost},\n\tUnshareRouteRequest:                                         {Path: \"/v3/routes/:route_guid/relationships/shared_spaces/:space_guid\", Method: http.MethodDelete},\n\tPatchMoveRouteRequest:                                       {Path: \"/v3/routes/:route_guid/relationships/space\", Method: http.MethodPatch},\n\tGetSecurityGroupsRequest:                                    {Path: \"/v3/security_groups\", Method: http.MethodGet},\n\tPostSecurityGroupRequest:                                    {Path: \"/v3/security_groups\", Method: http.MethodPost},\n\tDeleteSecurityGroupRequest:                                  {Path: \"/v3/security_groups/:security_group_guid\", Method: http.MethodDelete},\n\tPostSecurityGroupStagingSpaceRequest:                        {Path: \"/v3/security_groups/:security_group_guid/relationships/staging_spaces\", Method: http.MethodPost},\n\tPostSecurityGroupRunningSpaceRequest:                        {Path: \"/v3/security_groups/:security_group_guid/relationships/running_spaces\", Method: http.MethodPost},\n\tDeleteSecurityGroupStagingSpaceRequest:                      {Path: \"/v3/security_groups/:security_group_guid/relationships/staging_spaces/:space_guid\", Method: http.MethodDelete},\n\tDeleteSecurityGroupRunningSpaceRequest:                      {Path: \"/v3/security_groups/:security_group_guid/relationships/running_spaces/:space_guid\", Method: http.MethodDelete},\n\tPatchSecurityGroupRequest:                                   {Path: \"/v3/security_groups/:security_group_guid\", Method: http.MethodPatch},\n\tGetServiceBrokersRequest:                                    {Path: \"/v3/service_brokers\", Method: http.MethodGet},\n\tPostServiceBrokerRequest:                                    {Path: \"/v3/service_brokers\", Method: http.MethodPost},\n\tDeleteServiceBrokerRequest:                                  {Path: \"/v3/service_brokers/:service_broker_guid\", Method: http.MethodDelete},\n\tPatchServiceBrokerRequest:                                   {Path: \"/v3/service_brokers/:service_broker_guid\", Method: http.MethodPatch},\n\tPostServiceCredentialBindingRequest:                         {Path: \"/v3/service_credential_bindings\", Method: http.MethodPost},\n\tGetServiceCredentialBindingsRequest:                         {Path: \"/v3/service_credential_bindings\", Method: http.MethodGet},\n\tDeleteServiceCredentialBindingRequest:                       {Path: \"/v3/service_credential_bindings/:service_credential_binding_guid\", Method: http.MethodDelete},\n\tGetServiceCredentialBindingDetailsRequest:                   {Path: \"/v3/service_credential_bindings/:service_credential_binding_guid/details\", Method: http.MethodGet},\n\tGetServiceInstanceRequest:                                   {Path: \"/v3/service_instances/:service_instance_guid\", Method: http.MethodGet},\n\tGetServiceInstancesRequest:                                  {Path: \"/v3/service_instances\", Method: http.MethodGet},\n\tPostServiceInstanceRequest:                                  {Path: \"/v3/service_instances\", Method: http.MethodPost},\n\tGetServiceInstanceParametersRequest:                         {Path: \"/v3/service_instances/:service_instance_guid/parameters\", Method: http.MethodGet},\n\tPatchServiceInstanceRequest:                                 {Path: \"/v3/service_instances/:service_instance_guid\", Method: http.MethodPatch},\n\tDeleteServiceInstanceRequest:                                {Path: \"/v3/service_instances/:service_instance_guid\", Method: http.MethodDelete},\n\tGetServiceInstanceSharedSpacesUsageSummaryRequest:           {Path: \"/v3/service_instances/:service_instance_guid/relationships/shared_spaces/usage_summary\", Method: http.MethodGet},\n\tGetServiceInstanceRelationshipsSharedSpacesRequest:          {Path: \"/v3/service_instances/:service_instance_guid/relationships/shared_spaces\", Method: http.MethodGet},\n\tPostServiceInstanceRelationshipsSharedSpacesRequest:         {Path: \"/v3/service_instances/:service_instance_guid/relationships/shared_spaces\", Method: http.MethodPost},\n\tDeleteServiceInstanceRelationshipsSharedSpaceRequest:        {Path: \"/v3/service_instances/:service_instance_guid/relationships/shared_spaces/:space_guid\", Method: http.MethodDelete},\n\tGetServiceOfferingRequest:                                   {Path: \"/v3/service_offerings/:service_offering_guid\", Method: http.MethodGet},\n\tGetServiceOfferingsRequest:                                  {Path: \"/v3/service_offerings\", Method: http.MethodGet},\n\tPatchServiceOfferingRequest:                                 {Path: \"/v3/service_offerings/:service_offering_guid\", Method: http.MethodPatch},\n\tDeleteServiceOfferingRequest:                                {Path: \"/v3/service_offerings/:service_offering_guid\", Method: http.MethodDelete},\n\tGetServicePlanRequest:                                       {Path: \"/v3/service_plans/:service_plan_guid\", Method: http.MethodGet},\n\tGetServicePlansRequest:                                      {Path: \"/v3/service_plans\", Method: http.MethodGet},\n\tPatchServicePlanRequest:                                     {Path: \"/v3/service_plans/:service_plan_guid\", Method: http.MethodPatch},\n\tGetServicePlanVisibilityRequest:                             {Path: \"/v3/service_plans/:service_plan_guid/visibility\", Method: http.MethodGet},\n\tPostServicePlanVisibilityRequest:                            {Path: \"/v3/service_plans/:service_plan_guid/visibility\", Method: http.MethodPost},\n\tDeleteServicePlanVisibilityRequest:                          {Path: \"/v3/service_plans/:service_plan_guid/visibility/:organization_guid\", Method: http.MethodDelete},\n\tPostRouteBindingRequest:                                     {Path: \"/v3/service_route_bindings\", Method: http.MethodPost},\n\tGetRouteBindingsRequest:                                     {Path: \"/v3/service_route_bindings\", Method: http.MethodGet},\n\tDeleteRouteBindingRequest:                                   {Path: \"/v3/service_route_bindings/:route_binding_guid\", Method: http.MethodDelete},\n\tGetSpacesRequest:                                            {Path: \"/v3/spaces\", Method: http.MethodGet},\n\tPostSpaceRequest:                                            {Path: \"/v3/spaces\", Method: http.MethodPost},\n\tDeleteSpaceRequest:                                          {Path: \"/v3/spaces/:space_guid\", Method: http.MethodDelete},\n\tPatchSpaceRequest:                                           {Path: \"/v3/spaces/:space_guid\", Method: http.MethodPatch},\n\tPostSpaceActionApplyManifestRequest:                         {Path: \"/v3/spaces/:space_guid/actions/apply_manifest\", Method: http.MethodPost},\n\tPostSpaceDiffManifestRequest:                                {Path: \"/v3/spaces/:space_guid/manifest_diff\", Method: http.MethodPost},\n\tGetSpaceRelationshipIsolationSegmentRequest:                 {Path: \"/v3/spaces/:space_guid/relationships/isolation_segment\", Method: http.MethodGet},\n\tPatchSpaceRelationshipIsolationSegmentRequest:               {Path: \"/v3/spaces/:space_guid/relationships/isolation_segment\", Method: http.MethodPatch},\n\tDeleteOrphanedRoutesRequest:                                 {Path: \"/v3/spaces/:space_guid/routes\", Method: http.MethodDelete},\n\tGetSpaceRunningSecurityGroupsRequest:                        {Path: \"/v3/spaces/:space_guid/running_security_groups\", Method: http.MethodGet},\n\tGetSpaceStagingSecurityGroupsRequest:                        {Path: \"/v3/spaces/:space_guid/staging_security_groups\", Method: http.MethodGet},\n\tPatchSpaceFeaturesRequest:                                   {Path: \"/v3/spaces/:space_guid/features/:feature\", Method: http.MethodPatch},\n\tGetSpaceFeatureRequest:                                      {Path: \"/v3/spaces/:space_guid/features/:feature\", Method: http.MethodGet},\n\tPostSpaceQuotaRequest:                                       {Path: \"/v3/space_quotas\", Method: http.MethodPost},\n\tGetSpaceQuotaRequest:                                        {Path: \"/v3/space_quotas/:quota_guid\", Method: http.MethodGet},\n\tDeleteSpaceQuotaRequest:                                     {Path: \"/v3/space_quotas/:quota_guid\", Method: http.MethodDelete},\n\tPostSpaceQuotaRelationshipsRequest:                          {Path: \"/v3/space_quotas/:quota_guid/relationships/spaces\", Method: http.MethodPost},\n\tGetSpaceQuotasRequest:                                       {Path: \"/v3/space_quotas\", Method: http.MethodGet},\n\tPatchSpaceQuotaRequest:                                      {Path: \"/v3/space_quotas/:quota_guid\", Method: http.MethodPatch},\n\tDeleteSpaceQuotaFromSpaceRequest:                            {Path: \"/v3/space_quotas/:quota_guid/relationships/spaces/:space_guid\", Method: http.MethodDelete},\n\tGetStacksRequest:                                            {Path: \"/v3/stacks\", Method: http.MethodGet},\n\tPatchStackRequest:                                           {Path: \"/v3/stacks/:stack_guid\", Method: http.MethodPatch},\n\tGetTaskRequest:                                              {Path: \"/v3/tasks/:task_guid\", Method: http.MethodGet},\n\tPutTaskCancelRequest:                                        {Path: \"/v3/tasks/:task_guid/cancel\", Method: http.MethodPut},\n\tGetUsersRequest:                                             {Path: \"/v3/users\", Method: http.MethodGet},\n\tGetUserRequest:                                              {Path: \"/v3/users/:user_guid\", Method: http.MethodGet},\n\tPostUserRequest:                                             {Path: \"/v3/users\", Method: http.MethodPost},\n\tDeleteUserRequest:                                           {Path: \"/v3/users/:user_guid\", Method: http.MethodDelete},\n\tWhoAmI:                                                      {Path: \"/whoami\", Method: http.MethodGet},\n\tInfo:                                                        {Path: \"/v3/info\", Method: http.MethodGet},\n}\n```\nAPIRoutes is a list of routes used by the router to construct request URLs.\n\n## Types\n\n```go\ntype Params map[string]string\n```\nParams map path keys to values.  For example, if your route has the path pattern:\n\n\t/person/:person_id/pets/:pet_type\n\nThen a correct Params map would look like:\n\n\trouter.Params{\n\t  \"person_id\": \"123\",\n\t  \"pet_type\": \"cats\",\n\t}\n\n```go\ntype RealTime struct{}\n```\n\n```go\nfunc (RealTime) Now() time.Time\n```\n\n```go\nfunc (RealTime) Sleep(d time.Duration)\n```\n\n```go\ntype Route struct {\n\t// Method is any valid HTTP method\n\tMethod string\n\t// Path contains a path pattern\n\tPath string\n}\n```\nRoute defines the property of a Cloud Controller V3 endpoint.\n\nMethod can be one of the following:\n\n\tGET HEAD POST PUT PATCH DELETE CONNECT OPTIONS TRACE\n\nPath conforms to Pat-style pattern matching. The following docs are taken from [http://godoc.org/github.com/bmizerany/pat#PatternServeMux](http://godoc.org/github.com/bmizerany/pat#PatternServeMux)\n\nPath Patterns may contain literals or captures. Capture names start with a colon and consist of letters A-Z, a-z, \\_, and 0-9. The rest of the pattern matches literally. The portion of the URL matching each name ends with an occurrence of the character in the pattern immediately following the name, or a /, whichever comes first. It is possible for a name to match the empty string.\n\nExample pattern with one capture:\n\n\t/hello/:name\n\nWill match:\n\n\t/hello/blake\n\t/hello/keith\n\nWill not match:\n\n\t/hello/blake/\n\t/hello/blake/foo\n\t/foo\n\t/foo/bar\n\nExample 2:\n\n\t/hello/:name/\n\nWill match:\n\n\t/hello/blake/\n\t/hello/keith/foo\n\t/hello/blake\n\t/hello/keith\n\nWill not match:\n\n\t/foo\n\t/foo/bar\n\n```go\nfunc (r Route) CreatePath(params Params) (string, error)\n```\nCreatePath combines the route's path pattern with a Params map to produce a valid path.\n\n```go\ntype Router struct {\n\t// contains filtered or unexported fields\n}\n```\nRouter combines route and resource information in order to generate HTTP requests.\n\n```go\nfunc NewRouter(routes map[string]Route, baseURL string) *Router\n```\nNewRouter returns a pointer to a new Router.\n\n```go\nfunc (router Router) CreateRequest(name string, params Params, body io.Reader) (*http.Request, error)\n```\nCreateRequest returns a request key'd off of the name given. The params are merged into the URL and body is set as the request body.\n\n","path":"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccv3/internal","name":"internal","synopsis":"","isRedistributable":true}
