mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
Simplify getting actual Customer ID
This commit is contained in:
@@ -3548,6 +3548,10 @@ gam info customer [formatjson]
|
|||||||
|
|
||||||
gam info instance [formatjson]
|
gam info instance [formatjson]
|
||||||
|
|
||||||
|
gam info customerid
|
||||||
|
|
||||||
|
gam info gcporgid
|
||||||
|
|
||||||
# Data Transfers
|
# Data Transfers
|
||||||
|
|
||||||
gam print|show transferapps
|
gam print|show transferapps
|
||||||
|
|||||||
@@ -9,18 +9,25 @@ gam create|update|delete caalevel
|
|||||||
gam print|show caalevels
|
gam print|show caalevels
|
||||||
gam print|show tokens gcpdetails
|
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
|
$ gam info gcporgid
|
||||||
organizations/906207637890
|
organizations/906207637890
|
||||||
$ gam config gcp_org_id organizations/906207637890 save
|
$ 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>`.
|
Added the following options to `gam report <ActivityApplicationName>`.
|
||||||
```
|
```
|
||||||
|
applicationinfofilter <String>
|
||||||
networkinfofilter <String>
|
networkinfofilter <String>
|
||||||
statusfilter <String>
|
statusfilter <String>
|
||||||
applicationinfofilter <String>
|
|
||||||
includesensitivedata
|
includesensitivedata
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -12006,6 +12006,12 @@ def getCRMOrgId(forceSearch=False):
|
|||||||
return orgs[0].get('name')
|
return orgs[0].get('name')
|
||||||
return GC.Values[GC.GCP_ORG_ID]
|
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
|
# gam info gcporgid
|
||||||
def doInfoGCPOrgId():
|
def doInfoGCPOrgId():
|
||||||
checkForExtraneousArguments()
|
checkForExtraneousArguments()
|
||||||
@@ -80200,6 +80206,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_CROSTELEMETRY: doInfoPrintShowCrOSTelemetry,
|
Cmd.ARG_CROSTELEMETRY: doInfoPrintShowCrOSTelemetry,
|
||||||
Cmd.ARG_CURRENTPROJECTID: doInfoCurrentProjectId,
|
Cmd.ARG_CURRENTPROJECTID: doInfoCurrentProjectId,
|
||||||
Cmd.ARG_CUSTOMER: doInfoCustomer,
|
Cmd.ARG_CUSTOMER: doInfoCustomer,
|
||||||
|
Cmd.ARG_CUSTOMERID: doInfoCustomerId,
|
||||||
Cmd.ARG_DATATRANSFER: doInfoDataTransfer,
|
Cmd.ARG_DATATRANSFER: doInfoDataTransfer,
|
||||||
Cmd.ARG_DEVICE: doInfoCIDevice,
|
Cmd.ARG_DEVICE: doInfoCIDevice,
|
||||||
Cmd.ARG_DEVICEUSER: doInfoCIDeviceUser,
|
Cmd.ARG_DEVICEUSER: doInfoCIDeviceUser,
|
||||||
|
|||||||
@@ -830,6 +830,7 @@ class GamCLArgs():
|
|||||||
ARG_CSEKEYPAIRS = 'csekeypairs'
|
ARG_CSEKEYPAIRS = 'csekeypairs'
|
||||||
ARG_CURRENTPROJECTID = 'currentprojectid'
|
ARG_CURRENTPROJECTID = 'currentprojectid'
|
||||||
ARG_CUSTOMER = 'customer'
|
ARG_CUSTOMER = 'customer'
|
||||||
|
ARG_CUSTOMERID = 'customerid'
|
||||||
ARG_DATASTUDIOASSET = 'datastudioasset'
|
ARG_DATASTUDIOASSET = 'datastudioasset'
|
||||||
ARG_DATASTUDIOASSETS = 'datastudioassets'
|
ARG_DATASTUDIOASSETS = 'datastudioassets'
|
||||||
ARG_DATASTUDIOPERMISSION = 'datastudiopermission'
|
ARG_DATASTUDIOPERMISSION = 'datastudiopermission'
|
||||||
|
|||||||
Reference in New Issue
Block a user