com.ovhcloud.pulumi.ovh.Hosting.HostingFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.ovhcloud.pulumi.ovh.Hosting;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistPlainArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbPlainArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabasePlainArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantPlainArgs;
import com.ovhcloud.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserPlainArgs;
import com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseAllowlistResult;
import com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseDbResult;
import com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseResult;
import com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseUserGrantResult;
import com.ovhcloud.pulumi.ovh.Hosting.outputs.GetPrivateDatabaseUserResult;
import com.ovhcloud.pulumi.ovh.Utilities;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;
public final class HostingFunctions {
/**
* Use this data source to retrieve information about an hosting database.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var database = HostingFunctions.getPrivateDatabase(GetPrivateDatabaseArgs.builder()
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabase(GetPrivateDatabaseArgs args) {
return getPrivateDatabase(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting database.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var database = HostingFunctions.getPrivateDatabase(GetPrivateDatabaseArgs.builder()
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabasePlain(GetPrivateDatabasePlainArgs args) {
return getPrivateDatabasePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting database.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var database = HostingFunctions.getPrivateDatabase(GetPrivateDatabaseArgs.builder()
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabase(GetPrivateDatabaseArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Hosting/getPrivateDatabase:getPrivateDatabase", TypeShape.of(GetPrivateDatabaseResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting database.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var database = HostingFunctions.getPrivateDatabase(GetPrivateDatabaseArgs.builder()
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabasePlain(GetPrivateDatabasePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Hosting/getPrivateDatabase:getPrivateDatabase", TypeShape.of(GetPrivateDatabaseResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase whitelist.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var whitelist = HostingFunctions.getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs.builder()
* .ip("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args) {
return getPrivateDatabaseAllowlist(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase whitelist.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var whitelist = HostingFunctions.getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs.builder()
* .ip("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseAllowlistPlain(GetPrivateDatabaseAllowlistPlainArgs args) {
return getPrivateDatabaseAllowlistPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase whitelist.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var whitelist = HostingFunctions.getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs.builder()
* .ip("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Hosting/getPrivateDatabaseAllowlist:getPrivateDatabaseAllowlist", TypeShape.of(GetPrivateDatabaseAllowlistResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase whitelist.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseAllowlistArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var whitelist = HostingFunctions.getPrivateDatabaseAllowlist(GetPrivateDatabaseAllowlistArgs.builder()
* .ip("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseAllowlistPlain(GetPrivateDatabaseAllowlistPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Hosting/getPrivateDatabaseAllowlist:getPrivateDatabaseAllowlist", TypeShape.of(GetPrivateDatabaseAllowlistResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var mydatabase = HostingFunctions.getPrivateDatabaseDb(GetPrivateDatabaseDbArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseDb(GetPrivateDatabaseDbArgs args) {
return getPrivateDatabaseDb(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var mydatabase = HostingFunctions.getPrivateDatabaseDb(GetPrivateDatabaseDbArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseDbPlain(GetPrivateDatabaseDbPlainArgs args) {
return getPrivateDatabaseDbPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var mydatabase = HostingFunctions.getPrivateDatabaseDb(GetPrivateDatabaseDbArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseDb(GetPrivateDatabaseDbArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Hosting/getPrivateDatabaseDb:getPrivateDatabaseDb", TypeShape.of(GetPrivateDatabaseDbResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseDbArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var mydatabase = HostingFunctions.getPrivateDatabaseDb(GetPrivateDatabaseDbArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseDbPlain(GetPrivateDatabaseDbPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Hosting/getPrivateDatabaseDb:getPrivateDatabaseDb", TypeShape.of(GetPrivateDatabaseDbResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var user = HostingFunctions.getPrivateDatabaseUser(GetPrivateDatabaseUserArgs.builder()
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseUser(GetPrivateDatabaseUserArgs args) {
return getPrivateDatabaseUser(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var user = HostingFunctions.getPrivateDatabaseUser(GetPrivateDatabaseUserArgs.builder()
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseUserPlain(GetPrivateDatabaseUserPlainArgs args) {
return getPrivateDatabaseUserPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var user = HostingFunctions.getPrivateDatabaseUser(GetPrivateDatabaseUserArgs.builder()
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseUser(GetPrivateDatabaseUserArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Hosting/getPrivateDatabaseUser:getPrivateDatabaseUser", TypeShape.of(GetPrivateDatabaseUserResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var user = HostingFunctions.getPrivateDatabaseUser(GetPrivateDatabaseUserArgs.builder()
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseUserPlain(GetPrivateDatabaseUserPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Hosting/getPrivateDatabaseUser:getPrivateDatabaseUser", TypeShape.of(GetPrivateDatabaseUserResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user grant.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var userGrant = HostingFunctions.getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs args) {
return getPrivateDatabaseUserGrant(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user grant.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var userGrant = HostingFunctions.getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseUserGrantPlain(GetPrivateDatabaseUserGrantPlainArgs args) {
return getPrivateDatabaseUserGrantPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user grant.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var userGrant = HostingFunctions.getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Hosting/getPrivateDatabaseUserGrant:getPrivateDatabaseUserGrant", TypeShape.of(GetPrivateDatabaseUserGrantResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve information about an hosting privatedatabase user grant.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Hosting.HostingFunctions;
* import com.pulumi.ovh.Hosting.inputs.GetPrivateDatabaseUserGrantArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var userGrant = HostingFunctions.getPrivateDatabaseUserGrant(GetPrivateDatabaseUserGrantArgs.builder()
* .databaseName("XXXXXX")
* .serviceName("XXXXXX")
* .userName("XXXXXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPrivateDatabaseUserGrantPlain(GetPrivateDatabaseUserGrantPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Hosting/getPrivateDatabaseUserGrant:getPrivateDatabaseUserGrant", TypeShape.of(GetPrivateDatabaseUserGrantResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy