oci.ApiGateway.getApiValidation
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testApiValidation = Oci.ApiGateway.GetApiValidation.Invoke(new()
{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApiGateway.ApiGatewayFunctions;
import com.pulumi.oci.ApiGateway.inputs.GetApiValidationArgs;
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 testApiValidation = ApiGatewayFunctions.getApiValidation(GetApiValidationArgs.builder()
.apiId(oci_apigateway_api.test_api().id())
.build());
}
}
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,
});
variables:
testApiValidation:
fn::invoke:
Function: oci:ApiGateway:getApiValidation
Arguments:
apiId: ${oci_apigateway_api.test_api.id}
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:
- Api
Id string The ocid of the API.
- Api
Id string The ocid of the API.
- api
Id String The ocid of the API.
- api
Id string The ocid of the API.
- api_
id str The ocid of the API.
- api
Id String The ocid of the API.
getApiValidation Result
The following output properties are available:
- Api
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Validations
List<Get
Api Validation Validation> API validation results.
- Api
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Validations
[]Get
Api Validation Validation API validation results.
- api
Id String - id String
The provider-assigned unique ID for this managed resource.
- validations
List<Get
Api Validation Validation> API validation results.
- api
Id string - id string
The provider-assigned unique ID for this managed resource.
- validations
Get
Api Validation Validation[] API validation results.
- api_
id str - id str
The provider-assigned unique ID for this managed resource.
- validations
Get
Api Validation Validation] API validation results.
- api
Id String - id String
The provider-assigned unique ID for this managed resource.
- validations List<Property Map>
API validation results.
Supporting Types
GetApiValidationValidation
- Details
List<Get
Api Validation Validation Detail> Details of validation.
- Name string
Name of the validation.
- Result string
Result of the validation.
- Details
[]Get
Api Validation Validation Detail Details of validation.
- Name string
Name of the validation.
- Result string
Result of the validation.
- details
List<Get
Api Validation Validation Detail> Details of validation.
- name String
Name of the validation.
- result String
Result of the validation.
- details
Get
Api Validation Validation Detail[] Details of validation.
- name string
Name of the validation.
- result string
Result of the validation.
- details
Get
Api Validation Validation Detail] 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<Get
Api Validation Validation Detail Src> Position of the issue in the specification file (line, column).
- Msg string
Description of the warning/error.
- Severity string
Severity of the issue.
- Srcs
[]Get
Api Validation Validation Detail Src 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<Get
Api Validation Validation Detail Src> Position of the issue in the specification file (line, column).
- msg string
Description of the warning/error.
- severity string
Severity of the issue.
- srcs
Get
Api Validation Validation Detail Src[] Position of the issue in the specification file (line, column).
- msg str
Description of the warning/error.
- severity str
Severity of the issue.
- srcs
Get
Api Validation Validation Detail Src] 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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.