google-cloud-appengine-admin overview (2.2.0)

com.google.appengine.v1

The interfaces provided are listed below, along with usage samples.

ApplicationsClient

Service Description: Manages App Engine applications.

Sample for ApplicationsClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(ApplicationsClientapplicationsClient=ApplicationsClient.create()){
Stringname="name3373707";
Applicationresponse=applicationsClient.getApplication(name);
}

ServicesClient

Service Description: Manages services of an application.

Sample for ServicesClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(ServicesClientservicesClient=ServicesClient.create()){
GetServiceRequestrequest=GetServiceRequest.newBuilder().setName("name3373707").build();
Serviceresponse=servicesClient.getService(request);
}

VersionsClient

Service Description: Manages versions of a service.

Sample for VersionsClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(VersionsClientversionsClient=VersionsClient.create()){
GetVersionRequestrequest=
GetVersionRequest.newBuilder()
.setName("name3373707")
.setView(VersionView.forNumber(0))
.build();
Versionresponse=versionsClient.getVersion(request);
}

InstancesClient

Service Description: Manages instances of a version.

Sample for InstancesClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(InstancesClientinstancesClient=InstancesClient.create()){
GetInstanceRequestrequest=GetInstanceRequest.newBuilder().setName("name3373707").build();
Instanceresponse=instancesClient.getInstance(request);
}

FirewallClient

Service Description: Firewall resources are used to define a collection of access control rules for an Application. Each rule is defined with a position which specifies the rule's order in the sequence of rules, an IP range to be matched against requests, and an action to take upon matching requests.

Every request is evaluated against the Firewall rules in priority order. Processesing stops at the first rule which matches the request's IP address. A final rule always specifies an action that applies to all remaining IP addresses. The default final rule for a newly-created application will be set to "allow" if not otherwise specified by the user.

Sample for FirewallClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(FirewallClientfirewallClient=FirewallClient.create()){
BatchUpdateIngressRulesRequestrequest=
BatchUpdateIngressRulesRequest.newBuilder()
.setName("name3373707")
.addAllIngressRules(newArrayList<FirewallRule>())
.build();
BatchUpdateIngressRulesResponseresponse=firewallClient.batchUpdateIngressRules(request);
}

AuthorizedDomainsClient

Service Description: Manages domains a user is authorized to administer. To authorize use of a domain, verify ownership via Webmaster Central.

Sample for AuthorizedDomainsClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(AuthorizedDomainsClientauthorizedDomainsClient=AuthorizedDomainsClient.create()){
ListAuthorizedDomainsRequestrequest=
ListAuthorizedDomainsRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for(AuthorizedDomainelement:
authorizedDomainsClient.listAuthorizedDomains(request).iterateAll()){
// doThingsWith(element);
}
}

AuthorizedCertificatesClient

Service Description: Manages SSL certificates a user is authorized to administer. A user can administer any SSL certificates applicable to their authorized domains.

Sample for AuthorizedCertificatesClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(AuthorizedCertificatesClientauthorizedCertificatesClient=
AuthorizedCertificatesClient.create()){
GetAuthorizedCertificateRequestrequest=
GetAuthorizedCertificateRequest.newBuilder()
.setName("name3373707")
.setView(AuthorizedCertificateView.forNumber(0))
.build();
AuthorizedCertificateresponse=
authorizedCertificatesClient.getAuthorizedCertificate(request);
}

DomainMappingsClient

Service Description: Manages domains serving an application.

Sample for DomainMappingsClient:


// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try(DomainMappingsClientdomainMappingsClient=DomainMappingsClient.create()){
GetDomainMappingRequestrequest=
GetDomainMappingRequest.newBuilder().setName("name3373707").build();
DomainMappingresponse=domainMappingsClient.getDomainMapping(request);
}

com.google.appengine.v1.firewall

com.google.appengine.v1.stub

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.