Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Mysql.getMysqlVersion
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Mysql Versions in Oracle Cloud Infrastructure MySQL Database service.
Get a list of supported and available MySQL database major versions.
The list is sorted by version family.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMysqlVersions = oci.Mysql.getMysqlVersion({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_mysql_versions = oci.Mysql.get_mysql_version(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Mysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Mysql.GetMysqlVersion(ctx, &mysql.GetMysqlVersionArgs{
CompartmentId: compartmentId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMysqlVersions = Oci.Mysql.GetMysqlVersion.Invoke(new()
{
CompartmentId = compartmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.MysqlFunctions;
import com.pulumi.oci.Mysql.inputs.GetMysqlVersionArgs;
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 testMysqlVersions = MysqlFunctions.getMysqlVersion(GetMysqlVersionArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testMysqlVersions:
fn::invoke:
Function: oci:Mysql:getMysqlVersion
Arguments:
compartmentId: ${compartmentId}
Using getMysqlVersion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMysqlVersion(args: GetMysqlVersionArgs, opts?: InvokeOptions): Promise<GetMysqlVersionResult>
function getMysqlVersionOutput(args: GetMysqlVersionOutputArgs, opts?: InvokeOptions): Output<GetMysqlVersionResult>
def get_mysql_version(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_mysql.GetMysqlVersionFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlVersionResult
def get_mysql_version_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_mysql.GetMysqlVersionFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMysqlVersionResult]
func GetMysqlVersion(ctx *Context, args *GetMysqlVersionArgs, opts ...InvokeOption) (*GetMysqlVersionResult, error)
func GetMysqlVersionOutput(ctx *Context, args *GetMysqlVersionOutputArgs, opts ...InvokeOption) GetMysqlVersionResultOutput
> Note: This function is named GetMysqlVersion
in the Go SDK.
public static class GetMysqlVersion
{
public static Task<GetMysqlVersionResult> InvokeAsync(GetMysqlVersionArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlVersionResult> Invoke(GetMysqlVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMysqlVersionResult> getMysqlVersion(GetMysqlVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Mysql/getMysqlVersion:getMysqlVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Filters
List<Get
Mysql Version Filter>
- Compartment
Id string - The compartment OCID.
- Filters
[]Get
Mysql Version Filter
- compartment
Id String - The compartment OCID.
- filters
List<Get
Version Filter>
- compartment
Id string - The compartment OCID.
- filters
Get
Mysql Version Filter[]
- compartment_
id str - The compartment OCID.
- filters
Sequence[mysql.
Get Mysql Version Filter]
- compartment
Id String - The compartment OCID.
- filters List<Property Map>
getMysqlVersion Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Versions
List<Get
Mysql Version Version> - The list of supported MySQL Versions.
- Filters
List<Get
Mysql Version Filter>
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Versions
[]Get
Mysql Version Version - The list of supported MySQL Versions.
- Filters
[]Get
Mysql Version Filter
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- versions
List<Get
Version Version> - The list of supported MySQL Versions.
- filters
List<Get
Version Filter>
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- versions
Get
Mysql Version Version[] - The list of supported MySQL Versions.
- filters
Get
Mysql Version Filter[]
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- versions
Sequence[mysql.
Get Mysql Version Version] - The list of supported MySQL Versions.
- filters
Sequence[mysql.
Get Mysql Version Filter]
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- versions List<Property Map>
- The list of supported MySQL Versions.
- filters List<Property Map>
Supporting Types
GetMysqlVersionFilter
GetMysqlVersionVersion
- Version
Family string - A descriptive summary of a group of versions.
- Versions
List<Get
Mysql Version Version Version> - The list of supported MySQL Versions.
- Version
Family string - A descriptive summary of a group of versions.
- Versions
[]Get
Mysql Version Version Version - The list of supported MySQL Versions.
- version
Family String - A descriptive summary of a group of versions.
- versions
List<Get
Version Version Version> - The list of supported MySQL Versions.
- version
Family string - A descriptive summary of a group of versions.
- versions
Get
Mysql Version Version Version[] - The list of supported MySQL Versions.
- version_
family str - A descriptive summary of a group of versions.
- versions
Sequence[mysql.
Get Mysql Version Version Version] - The list of supported MySQL Versions.
- version
Family String - A descriptive summary of a group of versions.
- versions List<Property Map>
- The list of supported MySQL Versions.
GetMysqlVersionVersionVersion
- Description string
- A link to a page describing the version.
- Version string
- The specific version identifier
- Description string
- A link to a page describing the version.
- Version string
- The specific version identifier
- description String
- A link to a page describing the version.
- version String
- The specific version identifier
- description string
- A link to a page describing the version.
- version string
- The specific version identifier
- description str
- A link to a page describing the version.
- version str
- The specific version identifier
- description String
- A link to a page describing the version.
- version String
- The specific version identifier
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi