GetSpringCloudService

Use this data source to access information about an existing Spring Cloud Service.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.AppPlatform.GetSpringCloudService.InvokeAsync(new Azure.AppPlatform.GetSpringCloudServiceArgs
        {
            Name = azurerm_spring_cloud_service.Example.Name,
            ResourceGroupName = azurerm_spring_cloud_service.Example.Resource_group_name,
        }));
        this.SpringCloudServiceId = example.Apply(example => example.Id);
    }

    [Output("springCloudServiceId")]
    public Output<string> SpringCloudServiceId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appplatform"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        example, err := appplatform.LookupSpringCloudService(ctx, &appplatform.LookupSpringCloudServiceArgs{
            Name:              azurerm_spring_cloud_service.Example.Name,
            ResourceGroupName: azurerm_spring_cloud_service.Example.Resource_group_name,
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("springCloudServiceId", example.Id)
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.appplatform.get_spring_cloud_service(name=azurerm_spring_cloud_service["example"]["name"],
    resource_group_name=azurerm_spring_cloud_service["example"]["resource_group_name"])
pulumi.export("springCloudServiceId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.appplatform.getSpringCloudService({
    name: azurerm_spring_cloud_service.example.name,
    resourceGroupName: azurerm_spring_cloud_service.example.resource_group_name,
});
export const springCloudServiceId = example.then(example => example.id);

Using GetSpringCloudService

function getSpringCloudService(args: GetSpringCloudServiceArgs, opts?: InvokeOptions): Promise<GetSpringCloudServiceResult>
function  get_spring_cloud_service(name=None, resource_group_name=None, opts=None)
func LookupSpringCloudService(ctx *Context, args *LookupSpringCloudServiceArgs, opts ...InvokeOption) (*LookupSpringCloudServiceResult, error)

Note: This function is named LookupSpringCloudService in the Go SDK.

public static class GetSpringCloudService {
    public static Task<GetSpringCloudServiceResult> InvokeAsync(GetSpringCloudServiceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies The name of the Spring Cloud Service resource.

ResourceGroupName string

Specifies the name of the Resource Group where the Spring Cloud Service exists.

Name string

Specifies The name of the Spring Cloud Service resource.

ResourceGroupName string

Specifies the name of the Resource Group where the Spring Cloud Service exists.

name string

Specifies The name of the Spring Cloud Service resource.

resourceGroupName string

Specifies the name of the Resource Group where the Spring Cloud Service exists.

name str

Specifies The name of the Spring Cloud Service resource.

resource_group_name str

Specifies the name of the Resource Group where the Spring Cloud Service exists.

GetSpringCloudService Result

The following output properties are available:

ConfigServerGitSettings List<GetSpringCloudServiceConfigServerGitSetting>

A config_server_git_setting block as defined below.

Id string

The provider-assigned unique ID for this managed resource.

Location string

The location of Spring Cloud Service.

Name string

The name to identify on the Git repository.

ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags assigned to Spring Cloud Service.

ConfigServerGitSettings []GetSpringCloudServiceConfigServerGitSetting

A config_server_git_setting block as defined below.

Id string

The provider-assigned unique ID for this managed resource.

Location string

The location of Spring Cloud Service.

Name string

The name to identify on the Git repository.

ResourceGroupName string
Tags map[string]string

A mapping of tags assigned to Spring Cloud Service.

configServerGitSettings GetSpringCloudServiceConfigServerGitSetting[]

A config_server_git_setting block as defined below.

id string

The provider-assigned unique ID for this managed resource.

location string

The location of Spring Cloud Service.

name string

The name to identify on the Git repository.

resourceGroupName string
tags {[key: string]: string}

A mapping of tags assigned to Spring Cloud Service.

config_server_git_settings List[GetSpringCloudServiceConfigServerGitSetting]

A config_server_git_setting block as defined below.

id str

The provider-assigned unique ID for this managed resource.

location str

The location of Spring Cloud Service.

name str

The name to identify on the Git repository.

resource_group_name str
tags Dict[str, str]

A mapping of tags assigned to Spring Cloud Service.

Supporting Types

GetSpringCloudServiceConfigServerGitSetting

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

HttpBasicAuths List<GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthArgs>

A http_basic_auth block as defined below.

Label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

Repositories List<GetSpringCloudServiceConfigServerGitSettingRepositoryArgs>

One or more repository blocks as defined below.

SearchPaths List<string>

An array of strings used to search subdirectories of the Git repository.

SshAuths List<GetSpringCloudServiceConfigServerGitSettingSshAuthArgs>

A ssh_auth block as defined below.

Uri string

The URI of the Git repository

HttpBasicAuths []GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth

A http_basic_auth block as defined below.

Label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

Repositories []GetSpringCloudServiceConfigServerGitSettingRepository

One or more repository blocks as defined below.

SearchPaths []string

An array of strings used to search subdirectories of the Git repository.

SshAuths []GetSpringCloudServiceConfigServerGitSettingSshAuth

A ssh_auth block as defined below.

Uri string

The URI of the Git repository

httpBasicAuths GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth[]

A http_basic_auth block as defined below.

label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

repositories GetSpringCloudServiceConfigServerGitSettingRepository[]

One or more repository blocks as defined below.

searchPaths string[]

An array of strings used to search subdirectories of the Git repository.

sshAuths GetSpringCloudServiceConfigServerGitSettingSshAuth[]

A ssh_auth block as defined below.

uri string

The URI of the Git repository

httpBasicAuths List[GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth]

A http_basic_auth block as defined below.

label str

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

repositories List[GetSpringCloudServiceConfigServerGitSettingRepository]

One or more repository blocks as defined below.

searchPaths List[str]

An array of strings used to search subdirectories of the Git repository.

sshAuths List[GetSpringCloudServiceConfigServerGitSettingSshAuth]

A ssh_auth block as defined below.

uri str

The URI of the Git repository

GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Password string

The password used to access the Http Basic Authentication Git repository server.

Username string

The username used to access the Http Basic Authentication Git repository server.

Password string

The password used to access the Http Basic Authentication Git repository server.

Username string

The username used to access the Http Basic Authentication Git repository server.

password string

The password used to access the Http Basic Authentication Git repository server.

username string

The username used to access the Http Basic Authentication Git repository server.

password str

The password used to access the Http Basic Authentication Git repository server.

username str

The username used to access the Http Basic Authentication Git repository server.

GetSpringCloudServiceConfigServerGitSettingRepository

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

HttpBasicAuths List<GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthArgs>

A http_basic_auth block as defined below.

Label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

Name string

Specifies The name of the Spring Cloud Service resource.

Patterns List<string>

An array of strings used to match an application name. For each pattern, use the {application}/{profile} format with wildcards.

SearchPaths List<string>

An array of strings used to search subdirectories of the Git repository.

SshAuths List<GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthArgs>

A ssh_auth block as defined below.

Uri string

The URI of the Git repository

HttpBasicAuths []GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth

A http_basic_auth block as defined below.

Label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

Name string

Specifies The name of the Spring Cloud Service resource.

Patterns []string

An array of strings used to match an application name. For each pattern, use the {application}/{profile} format with wildcards.

SearchPaths []string

An array of strings used to search subdirectories of the Git repository.

SshAuths []GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth

A ssh_auth block as defined below.

Uri string

The URI of the Git repository

httpBasicAuths GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth[]

A http_basic_auth block as defined below.

label string

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

name string

Specifies The name of the Spring Cloud Service resource.

patterns string[]

An array of strings used to match an application name. For each pattern, use the {application}/{profile} format with wildcards.

searchPaths string[]

An array of strings used to search subdirectories of the Git repository.

sshAuths GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth[]

A ssh_auth block as defined below.

uri string

The URI of the Git repository

httpBasicAuths List[GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth]

A http_basic_auth block as defined below.

label str

The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository

name str

Specifies The name of the Spring Cloud Service resource.

patterns List[str]

An array of strings used to match an application name. For each pattern, use the {application}/{profile} format with wildcards.

searchPaths List[str]

An array of strings used to search subdirectories of the Git repository.

sshAuths List[GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth]

A ssh_auth block as defined below.

uri str

The URI of the Git repository

GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Password string

The password used to access the Http Basic Authentication Git repository server.

Username string

The username used to access the Http Basic Authentication Git repository server.

Password string

The password used to access the Http Basic Authentication Git repository server.

Username string

The username used to access the Http Basic Authentication Git repository server.

password string

The password used to access the Http Basic Authentication Git repository server.

username string

The username used to access the Http Basic Authentication Git repository server.

password str

The password used to access the Http Basic Authentication Git repository server.

username str

The username used to access the Http Basic Authentication Git repository server.

GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

HostKey string

The host key of the Git repository server.

HostKeyAlgorithm string

The host key algorithm.

PrivateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

StrictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

HostKey string

The host key of the Git repository server.

HostKeyAlgorithm string

The host key algorithm.

PrivateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

StrictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

hostKey string

The host key of the Git repository server.

hostKeyAlgorithm string

The host key algorithm.

privateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

strictHostKeyCheckingEnabled boolean

Indicates whether the Config Server instance will fail to start if the host_key does not match.

hostKey str

The host key of the Git repository server.

hostKeyAlgorithm str

The host key algorithm.

privateKey str

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

strictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

GetSpringCloudServiceConfigServerGitSettingSshAuth

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

HostKey string

The host key of the Git repository server.

HostKeyAlgorithm string

The host key algorithm.

PrivateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

StrictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

HostKey string

The host key of the Git repository server.

HostKeyAlgorithm string

The host key algorithm.

PrivateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

StrictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

hostKey string

The host key of the Git repository server.

hostKeyAlgorithm string

The host key algorithm.

privateKey string

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

strictHostKeyCheckingEnabled boolean

Indicates whether the Config Server instance will fail to start if the host_key does not match.

hostKey str

The host key of the Git repository server.

hostKeyAlgorithm str

The host key algorithm.

privateKey str

The SSH private key to access the Git repository, needed when the URI starts with git@ or ssh://.

strictHostKeyCheckingEnabled bool

Indicates whether the Config Server instance will fail to start if the host_key does not match.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.