Oracle Cloud Infrastructure

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

getApiValidation

This data source provides details about a specific Api Validation resource in Oracle Cloud Infrastructure API Gateway service.

Gets the API validation results.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testApiValidation = Output.Create(Oci.ApiGateway.GetApiValidation.InvokeAsync(new Oci.ApiGateway.GetApiValidationArgs
        {
            ApiId = oci_apigateway_api.Test_api.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApiGateway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ApiGateway.GetApiValidation(ctx, &apigateway.GetApiValidationArgs{
			ApiId: oci_apigateway_api.Test_api.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_api_validation = oci.ApiGateway.get_api_validation(api_id=oci_apigateway_api["test_api"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testApiValidation = oci.ApiGateway.getApiValidation({
    apiId: oci_apigateway_api.test_api.id,
});

Coming soon!

Using getApiValidation

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 getApiValidation(args: GetApiValidationArgs, opts?: InvokeOptions): Promise<GetApiValidationResult>
function getApiValidationOutput(args: GetApiValidationOutputArgs, opts?: InvokeOptions): Output<GetApiValidationResult>
def get_api_validation(api_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetApiValidationResult
def get_api_validation_output(api_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetApiValidationResult]
func GetApiValidation(ctx *Context, args *GetApiValidationArgs, opts ...InvokeOption) (*GetApiValidationResult, error)
func GetApiValidationOutput(ctx *Context, args *GetApiValidationOutputArgs, opts ...InvokeOption) GetApiValidationResultOutput

> Note: This function is named GetApiValidation in the Go SDK.

public static class GetApiValidation 
{
    public static Task<GetApiValidationResult> InvokeAsync(GetApiValidationArgs args, InvokeOptions? opts = null)
    public static Output<GetApiValidationResult> Invoke(GetApiValidationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiValidationResult> getApiValidation(GetApiValidationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:ApiGateway/getApiValidation:getApiValidation
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ApiId string

The ocid of the API.

ApiId string

The ocid of the API.

apiId String

The ocid of the API.

apiId string

The ocid of the API.

api_id str

The ocid of the API.

apiId String

The ocid of the API.

getApiValidation Result

The following output properties are available:

ApiId string
Id string

The provider-assigned unique ID for this managed resource.

Validations List<GetApiValidationValidation>

API validation results.

ApiId string
Id string

The provider-assigned unique ID for this managed resource.

Validations []GetApiValidationValidation

API validation results.

apiId String
id String

The provider-assigned unique ID for this managed resource.

validations List<GetApiValidationValidation>

API validation results.

apiId string
id string

The provider-assigned unique ID for this managed resource.

validations GetApiValidationValidation[]

API validation results.

api_id str
id str

The provider-assigned unique ID for this managed resource.

validations GetApiValidationValidation]

API validation results.

apiId String
id String

The provider-assigned unique ID for this managed resource.

validations List<Property Map>

API validation results.

Supporting Types

GetApiValidationValidation

Details List<GetApiValidationValidationDetail>

Details of validation.

Name string

Name of the validation.

Result string

Result of the validation.

Details []GetApiValidationValidationDetail

Details of validation.

Name string

Name of the validation.

Result string

Result of the validation.

details List<GetApiValidationValidationDetail>

Details of validation.

name String

Name of the validation.

result String

Result of the validation.

details GetApiValidationValidationDetail[]

Details of validation.

name string

Name of the validation.

result string

Result of the validation.

details GetApiValidationValidationDetail]

Details of validation.

name str

Name of the validation.

result str

Result of the validation.

details List<Property Map>

Details of validation.

name String

Name of the validation.

result String

Result of the validation.

GetApiValidationValidationDetail

Msg string

Description of the warning/error.

Severity string

Severity of the issue.

Srcs List<GetApiValidationValidationDetailSrc>

Position of the issue in the specification file (line, column).

Msg string

Description of the warning/error.

Severity string

Severity of the issue.

Srcs []GetApiValidationValidationDetailSrc

Position of the issue in the specification file (line, column).

msg String

Description of the warning/error.

severity String

Severity of the issue.

srcs List<GetApiValidationValidationDetailSrc>

Position of the issue in the specification file (line, column).

msg string

Description of the warning/error.

severity string

Severity of the issue.

srcs GetApiValidationValidationDetailSrc[]

Position of the issue in the specification file (line, column).

msg str

Description of the warning/error.

severity str

Severity of the issue.

srcs GetApiValidationValidationDetailSrc]

Position of the issue in the specification file (line, column).

msg String

Description of the warning/error.

severity String

Severity of the issue.

srcs List<Property Map>

Position of the issue in the specification file (line, column).

GetApiValidationValidationDetailSrc

Items List<object>
Items []interface{}
items List<Object>
items any[]
items Sequence[Any]
items List<Any>

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.