Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getMysqlVersion

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testMysqlVersions = Output.Create(Oci.Mysql.GetMysqlVersion.InvokeAsync(new Oci.Mysql.GetMysqlVersionArgs
        {
            CompartmentId = @var.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: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_mysql_versions = oci.Mysql.get_mysql_version(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMysqlVersions = oci.Mysql.getMysqlVersion({
    compartmentId: _var.compartment_id,
});

Coming soon!

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:

getMysqlVersion Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Versions List<GetMysqlVersionVersion>

The list of supported MySQL Versions.

Filters List<GetMysqlVersionFilter>
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Versions []GetMysqlVersionVersion

The list of supported MySQL Versions.

Filters []GetMysqlVersionFilter
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

versions List<GetVersionVersion>

The list of supported MySQL Versions.

filters List<GetVersionFilter>
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

versions GetMysqlVersionVersion[]

The list of supported MySQL Versions.

filters GetMysqlVersionFilter[]
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

versions GetMysqlVersionVersion]

The list of supported MySQL Versions.

filters GetMysqlVersionFilter]
compartmentId 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

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetMysqlVersionVersion

VersionFamily string

A descriptive summary of a group of versions.

Versions List<GetMysqlVersionVersionVersion>

The list of supported MySQL Versions.

VersionFamily string

A descriptive summary of a group of versions.

Versions []GetMysqlVersionVersionVersion

The list of supported MySQL Versions.

versionFamily String

A descriptive summary of a group of versions.

versions List<GetVersionVersionVersion>

The list of supported MySQL Versions.

versionFamily string

A descriptive summary of a group of versions.

versions GetMysqlVersionVersionVersion[]

The list of supported MySQL Versions.

version_family str

A descriptive summary of a group of versions.

versions GetMysqlVersionVersionVersion]

The list of supported MySQL Versions.

versionFamily 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.