1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getFastConnectProviderServiceKey
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getFastConnectProviderServiceKey

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Fast Connect Provider Service Key resource in Oracle Cloud Infrastructure Core service.

    Gets the specified provider service key’s information. Use this operation to validate a provider service key. An invalid key returns a 404 error.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFastConnectProviderServiceKey = oci.Core.getFastConnectProviderServiceKey({
        providerServiceId: data.oci_core_fast_connect_provider_services.test_fast_connect_provider_services.fast_connect_provider_services[0].id,
        providerServiceKeyName: _var.fast_connect_provider_service_key_provider_service_key_name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fast_connect_provider_service_key = oci.Core.get_fast_connect_provider_service_key(provider_service_id=data["oci_core_fast_connect_provider_services"]["test_fast_connect_provider_services"]["fast_connect_provider_services"][0]["id"],
        provider_service_key_name=var["fast_connect_provider_service_key_provider_service_key_name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetFastConnectProviderServiceKey(ctx, &core.GetFastConnectProviderServiceKeyArgs{
    			ProviderServiceId:      data.Oci_core_fast_connect_provider_services.Test_fast_connect_provider_services.Fast_connect_provider_services[0].Id,
    			ProviderServiceKeyName: _var.Fast_connect_provider_service_key_provider_service_key_name,
    		}, 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 testFastConnectProviderServiceKey = Oci.Core.GetFastConnectProviderServiceKey.Invoke(new()
        {
            ProviderServiceId = data.Oci_core_fast_connect_provider_services.Test_fast_connect_provider_services.Fast_connect_provider_services[0].Id,
            ProviderServiceKeyName = @var.Fast_connect_provider_service_key_provider_service_key_name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetFastConnectProviderServiceKeyArgs;
    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 testFastConnectProviderServiceKey = CoreFunctions.getFastConnectProviderServiceKey(GetFastConnectProviderServiceKeyArgs.builder()
                .providerServiceId(data.oci_core_fast_connect_provider_services().test_fast_connect_provider_services().fast_connect_provider_services()[0].id())
                .providerServiceKeyName(var_.fast_connect_provider_service_key_provider_service_key_name())
                .build());
    
        }
    }
    
    variables:
      testFastConnectProviderServiceKey:
        fn::invoke:
          Function: oci:Core:getFastConnectProviderServiceKey
          Arguments:
            providerServiceId: ${data.oci_core_fast_connect_provider_services.test_fast_connect_provider_services.fast_connect_provider_services[0].id}
            providerServiceKeyName: ${var.fast_connect_provider_service_key_provider_service_key_name}
    

    Using getFastConnectProviderServiceKey

    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 getFastConnectProviderServiceKey(args: GetFastConnectProviderServiceKeyArgs, opts?: InvokeOptions): Promise<GetFastConnectProviderServiceKeyResult>
    function getFastConnectProviderServiceKeyOutput(args: GetFastConnectProviderServiceKeyOutputArgs, opts?: InvokeOptions): Output<GetFastConnectProviderServiceKeyResult>
    def get_fast_connect_provider_service_key(provider_service_id: Optional[str] = None,
                                              provider_service_key_name: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetFastConnectProviderServiceKeyResult
    def get_fast_connect_provider_service_key_output(provider_service_id: Optional[pulumi.Input[str]] = None,
                                              provider_service_key_name: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetFastConnectProviderServiceKeyResult]
    func GetFastConnectProviderServiceKey(ctx *Context, args *GetFastConnectProviderServiceKeyArgs, opts ...InvokeOption) (*GetFastConnectProviderServiceKeyResult, error)
    func GetFastConnectProviderServiceKeyOutput(ctx *Context, args *GetFastConnectProviderServiceKeyOutputArgs, opts ...InvokeOption) GetFastConnectProviderServiceKeyResultOutput

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

    public static class GetFastConnectProviderServiceKey 
    {
        public static Task<GetFastConnectProviderServiceKeyResult> InvokeAsync(GetFastConnectProviderServiceKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetFastConnectProviderServiceKeyResult> Invoke(GetFastConnectProviderServiceKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFastConnectProviderServiceKeyResult> getFastConnectProviderServiceKey(GetFastConnectProviderServiceKeyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getFastConnectProviderServiceKey:getFastConnectProviderServiceKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProviderServiceId string
    The OCID of the provider service.
    ProviderServiceKeyName string
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.
    ProviderServiceId string
    The OCID of the provider service.
    ProviderServiceKeyName string
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.
    providerServiceId String
    The OCID of the provider service.
    providerServiceKeyName String
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.
    providerServiceId string
    The OCID of the provider service.
    providerServiceKeyName string
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.
    provider_service_id str
    The OCID of the provider service.
    provider_service_key_name str
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.
    providerServiceId String
    The OCID of the provider service.
    providerServiceKeyName String
    The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. You can set up that connection and get your provider service key at the provider's website or portal. For the portal location, see the description attribute of the FastConnectProviderService.

    getFastConnectProviderServiceKey Result

    The following output properties are available:

    BandwidthShapeName string
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    PeeringLocation string
    The provider's peering location.
    ProviderServiceId string
    ProviderServiceKeyName string
    BandwidthShapeName string
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    PeeringLocation string
    The provider's peering location.
    ProviderServiceId string
    ProviderServiceKeyName string
    bandwidthShapeName String
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    peeringLocation String
    The provider's peering location.
    providerServiceId String
    providerServiceKeyName String
    bandwidthShapeName string
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    peeringLocation string
    The provider's peering location.
    providerServiceId string
    providerServiceKeyName string
    bandwidth_shape_name str
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    peering_location str
    The provider's peering location.
    provider_service_id str
    provider_service_key_name str
    bandwidthShapeName String
    The provisioned data rate of the connection. To get a list of the available bandwidth levels (that is, shapes), see ListFastConnectProviderServiceVirtualCircuitBandwidthShapes. Example: 10 Gbps
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The service key that the provider gives you when you set up a virtual circuit connection from the provider to Oracle Cloud Infrastructure. Use this value as the providerServiceKeyName query parameter for GetFastConnectProviderServiceKey.
    peeringLocation String
    The provider's peering location.
    providerServiceId String
    providerServiceKeyName String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi