Package com.google.cloud.networkmanagement.v1beta1
The interfaces provided are listed below, along with usage samples.
======================= ReachabilityServiceClient =======================
Service Description: The Reachability service in the Google Cloud Network Management API provides services that analyze the reachability within a single Google Virtual Private Cloud (VPC) network, between peered VPC networks, between VPC and on-premises networks, or between VPC networks and internet hosts. A reachability analysis is based on Google Cloud network configurations.
You can use the analysis results to verify these configurations and to troubleshoot connectivity issues.
Sample for ReachabilityServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ReachabilityServiceClient reachabilityServiceClient = ReachabilityServiceClient.create()) {
GetConnectivityTestRequest request =
GetConnectivityTestRequest.newBuilder()
.setName(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
.build();
ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(request);
}
======================= VpcFlowLogsServiceClient =======================
Service Description: The VPC Flow Logs service in the Google Cloud Network Management API provides configurations that generate Flow Logs. The service and the configuration resources created using this service are global.
Sample for VpcFlowLogsServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
VpcFlowLogsConfigName name =
VpcFlowLogsConfigName.ofProjectLocationVpcFlowLogsConfigName(
"[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
}
======================= OrganizationVpcFlowLogsServiceClient =======================
Service Description: The VPC Flow Logs organization service in the Google Cloud Network Management API provides organization level configurations that generate Flow Logs. The service and the configuration resources created using this service are global.
Sample for OrganizationVpcFlowLogsServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OrganizationVpcFlowLogsServiceClient organizationVpcFlowLogsServiceClient =
OrganizationVpcFlowLogsServiceClient.create()) {
VpcFlowLogsConfigName name =
VpcFlowLogsConfigName.ofOrganizationLocationVpcFlowLogsConfigName(
"[ORGANIZATION]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
VpcFlowLogsConfig response = organizationVpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
}
-
ClassesClassDescriptionService Description: The VPC Flow Logs organization service in the Google Cloud Network Management API provides organization level configurations that generate Flow Logs.Settings class to configure an instance of
OrganizationVpcFlowLogsServiceClient.Builder for OrganizationVpcFlowLogsServiceSettings.Service Description: The Reachability service in the Google Cloud Network Management API provides services that analyze the reachability within a single Google Virtual Private Cloud (VPC) network, between peered VPC networks, between VPC and on-premises networks, or between VPC networks and internet hosts.Settings class to configure an instance ofReachabilityServiceClient.Builder for ReachabilityServiceSettings.Service Description: The VPC Flow Logs service in the Google Cloud Network Management API provides configurations that generate Flow Logs.Settings class to configure an instance ofVpcFlowLogsServiceClient.Builder for VpcFlowLogsServiceSettings.