Simplify getting actual Customer ID

This commit is contained in:
Ross Scroggs
2026-03-20 15:49:56 -07:00
parent e55cfe7360
commit c33d99184a
4 changed files with 21 additions and 2 deletions

View File

@@ -3548,6 +3548,10 @@ gam info customer [formatjson]
gam info instance [formatjson]
gam info customerid
gam info gcporgid
# Data Transfers
gam print|show transferapps

View File

@@ -9,18 +9,25 @@ gam create|update|delete caalevel
gam print|show caalevels
gam print|show tokens gcpdetails
```
You can get and set the `gcp_org_id` value with these commands:
You can get and set the `gam.cfg/gcp_org_id` value with these commands:
```
$ gam info gcporgid
organizations/906207637890
$ gam config gcp_org_id organizations/906207637890 save
```
You can get and set the `gam.cfg/customer_id` value with these commands:
```
$ gam info customerid
C78abc9de
$ gam config customer_id C78abc9de save
```
Added the following options to `gam report <ActivityApplicationName>`.
```
applicationinfofilter <String>
networkinfofilter <String>
statusfilter <String>
applicationinfofilter <String>
includesensitivedata
```

View File

@@ -12006,6 +12006,12 @@ def getCRMOrgId(forceSearch=False):
return orgs[0].get('name')
return GC.Values[GC.GCP_ORG_ID]
# gam info customerid
def doInfoCustomerId():
checkForExtraneousArguments()
setTrueCustomerId(cd=None)
writeStdout(f'{GC.Values[GC.CUSTOMER_ID]}\n')
# gam info gcporgid
def doInfoGCPOrgId():
checkForExtraneousArguments()
@@ -80200,6 +80206,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
Cmd.ARG_CROSTELEMETRY: doInfoPrintShowCrOSTelemetry,
Cmd.ARG_CURRENTPROJECTID: doInfoCurrentProjectId,
Cmd.ARG_CUSTOMER: doInfoCustomer,
Cmd.ARG_CUSTOMERID: doInfoCustomerId,
Cmd.ARG_DATATRANSFER: doInfoDataTransfer,
Cmd.ARG_DEVICE: doInfoCIDevice,
Cmd.ARG_DEVICEUSER: doInfoCIDeviceUser,

View File

@@ -830,6 +830,7 @@ class GamCLArgs():
ARG_CSEKEYPAIRS = 'csekeypairs'
ARG_CURRENTPROJECTID = 'currentprojectid'
ARG_CUSTOMER = 'customer'
ARG_CUSTOMERID = 'customerid'
ARG_DATASTUDIOASSET = 'datastudioasset'
ARG_DATASTUDIOASSETS = 'datastudioassets'
ARG_DATASTUDIOPERMISSION = 'datastudiopermission'