1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getNetworkSource
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Identity.getNetworkSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Network Source resource in Oracle Cloud Infrastructure Identity service.

    Gets the specified network source’s information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkSource = oci.Identity.getNetworkSource({
        networkSourceId: testNetworkSourceOciIdentityNetworkSource.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_source = oci.Identity.get_network_source(network_source_id=test_network_source_oci_identity_network_source["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Identity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Identity.GetNetworkSource(ctx, &identity.GetNetworkSourceArgs{
    			NetworkSourceId: testNetworkSourceOciIdentityNetworkSource.Id,
    		}, 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 testNetworkSource = Oci.Identity.GetNetworkSource.Invoke(new()
        {
            NetworkSourceId = testNetworkSourceOciIdentityNetworkSource.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Identity.IdentityFunctions;
    import com.pulumi.oci.Identity.inputs.GetNetworkSourceArgs;
    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 testNetworkSource = IdentityFunctions.getNetworkSource(GetNetworkSourceArgs.builder()
                .networkSourceId(testNetworkSourceOciIdentityNetworkSource.id())
                .build());
    
        }
    }
    
    variables:
      testNetworkSource:
        fn::invoke:
          Function: oci:Identity:getNetworkSource
          Arguments:
            networkSourceId: ${testNetworkSourceOciIdentityNetworkSource.id}
    

    Using getNetworkSource

    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 getNetworkSource(args: GetNetworkSourceArgs, opts?: InvokeOptions): Promise<GetNetworkSourceResult>
    function getNetworkSourceOutput(args: GetNetworkSourceOutputArgs, opts?: InvokeOptions): Output<GetNetworkSourceResult>
    def get_network_source(network_source_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetNetworkSourceResult
    def get_network_source_output(network_source_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSourceResult]
    func GetNetworkSource(ctx *Context, args *GetNetworkSourceArgs, opts ...InvokeOption) (*GetNetworkSourceResult, error)
    func GetNetworkSourceOutput(ctx *Context, args *GetNetworkSourceOutputArgs, opts ...InvokeOption) GetNetworkSourceResultOutput

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

    public static class GetNetworkSource 
    {
        public static Task<GetNetworkSourceResult> InvokeAsync(GetNetworkSourceArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkSourceResult> Invoke(GetNetworkSourceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkSourceResult> getNetworkSource(GetNetworkSourceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Identity/getNetworkSource:getNetworkSource
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkSourceId string
    The OCID of the network source.
    NetworkSourceId string
    The OCID of the network source.
    networkSourceId String
    The OCID of the network source.
    networkSourceId string
    The OCID of the network source.
    network_source_id str
    The OCID of the network source.
    networkSourceId String
    The OCID of the network source.

    getNetworkSource Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the network source.
    InactiveState string
    The detailed status of INACTIVE lifecycleState.
    Name string
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    NetworkSourceId string
    PublicSourceLists List<string>
    A list of allowed public IP addresses and CIDR ranges.
    Services List<string>
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    State string
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    TimeCreated string
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VirtualSourceLists List<GetNetworkSourceVirtualSourceList>
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]
    CompartmentId string
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the network source.
    InactiveState string
    The detailed status of INACTIVE lifecycleState.
    Name string
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    NetworkSourceId string
    PublicSourceLists []string
    A list of allowed public IP addresses and CIDR ranges.
    Services []string
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    State string
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    TimeCreated string
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VirtualSourceLists []GetNetworkSourceVirtualSourceList
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]
    compartmentId String
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the network source.
    inactiveState String
    The detailed status of INACTIVE lifecycleState.
    name String
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    networkSourceId String
    publicSourceLists List<String>
    A list of allowed public IP addresses and CIDR ranges.
    services List<String>
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    state String
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    timeCreated String
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    virtualSourceLists List<GetNetworkSourceVirtualSourceList>
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]
    compartmentId string
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the network source.
    inactiveState string
    The detailed status of INACTIVE lifecycleState.
    name string
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    networkSourceId string
    publicSourceLists string[]
    A list of allowed public IP addresses and CIDR ranges.
    services string[]
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    state string
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    timeCreated string
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    virtualSourceLists GetNetworkSourceVirtualSourceList[]
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]
    compartment_id str
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the network source.
    inactive_state str
    The detailed status of INACTIVE lifecycleState.
    name str
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    network_source_id str
    public_source_lists Sequence[str]
    A list of allowed public IP addresses and CIDR ranges.
    services Sequence[str]
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    state str
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    time_created str
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    virtual_source_lists Sequence[identity.GetNetworkSourceVirtualSourceList]
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]
    compartmentId String
    The OCID of the tenancy containing the network source. The tenancy is the root compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    The description you assign to the network source. Does not have to be unique, and it's changeable.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the network source.
    inactiveState String
    The detailed status of INACTIVE lifecycleState.
    name String
    The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
    networkSourceId String
    publicSourceLists List<String>
    A list of allowed public IP addresses and CIDR ranges.
    services List<String>
    A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only all and none are supported. The default is all.
    state String
    The network source object's current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
    timeCreated String
    Date and time the group was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    virtualSourceLists List<Property Map>
    A list of allowed VCN OCID and IP range pairs. Example:"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]

    Supporting Types

    GetNetworkSourceVirtualSourceList

    IpRanges List<string>
    VcnId string
    IpRanges []string
    VcnId string
    ipRanges List<String>
    vcnId String
    ipRanges string[]
    vcnId string
    ip_ranges Sequence[str]
    vcn_id str
    ipRanges List<String>
    vcnId 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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi