ConfigServer

class ConfigServer : KotlinCustomResource

Config Server resource Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview. Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appplatform [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ConfigServers_UpdatePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configServer = new AzureNative.AppPlatform.ConfigServer("configServer", new()
{
Properties = new AzureNative.AppPlatform.Inputs.ConfigServerPropertiesArgs
{
ConfigServer = new AzureNative.AppPlatform.Inputs.ConfigServerSettingsArgs
{
GitProperty = new AzureNative.AppPlatform.Inputs.ConfigServerGitPropertyArgs
{
Label = "master",
SearchPaths = new[]
{
"/",
},
Uri = "https://github.com/fake-user/fake-repository.git",
},
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewConfigServer(ctx, "configServer", &appplatform.ConfigServerArgs{
Properties: &appplatform.ConfigServerPropertiesArgs{
ConfigServer: &appplatform.ConfigServerSettingsArgs{
GitProperty: &appplatform.ConfigServerGitPropertyArgs{
Label: pulumi.String("master"),
SearchPaths: pulumi.StringArray{
pulumi.String("/"),
},
Uri: pulumi.String("https://github.com/fake-user/fake-repository.git"),
},
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
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.azurenative.appplatform.ConfigServer;
import com.pulumi.azurenative.appplatform.ConfigServerArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerSettingsArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerGitPropertyArgs;
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) {
var configServer = new ConfigServer("configServer", ConfigServerArgs.builder()
.properties(ConfigServerPropertiesArgs.builder()
.configServer(ConfigServerSettingsArgs.builder()
.gitProperty(ConfigServerGitPropertyArgs.builder()
.label("master")
.searchPaths("/")
.uri("https://github.com/fake-user/fake-repository.git")
.build())
.build())
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

ConfigServers_UpdatePut_Consumption

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configServer = new AzureNative.AppPlatform.ConfigServer("configServer", new()
{
Properties = new AzureNative.AppPlatform.Inputs.ConfigServerPropertiesArgs
{
ConfigServer = new AzureNative.AppPlatform.Inputs.ConfigServerSettingsArgs
{
GitProperty = new AzureNative.AppPlatform.Inputs.ConfigServerGitPropertyArgs
{
Label = "master",
SearchPaths = new[]
{
"/",
},
Uri = "https://github.com/fake-user/fake-repository.git",
},
},
EnabledState = AzureNative.AppPlatform.ConfigServerEnabledState.Enabled,
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewConfigServer(ctx, "configServer", &appplatform.ConfigServerArgs{
Properties: &appplatform.ConfigServerPropertiesArgs{
ConfigServer: &appplatform.ConfigServerSettingsArgs{
GitProperty: &appplatform.ConfigServerGitPropertyArgs{
Label: pulumi.String("master"),
SearchPaths: pulumi.StringArray{
pulumi.String("/"),
},
Uri: pulumi.String("https://github.com/fake-user/fake-repository.git"),
},
},
EnabledState: pulumi.String(appplatform.ConfigServerEnabledStateEnabled),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
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.azurenative.appplatform.ConfigServer;
import com.pulumi.azurenative.appplatform.ConfigServerArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerPropertiesArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerSettingsArgs;
import com.pulumi.azurenative.appplatform.inputs.ConfigServerGitPropertyArgs;
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) {
var configServer = new ConfigServer("configServer", ConfigServerArgs.builder()
.properties(ConfigServerPropertiesArgs.builder()
.configServer(ConfigServerSettingsArgs.builder()
.gitProperty(ConfigServerGitPropertyArgs.builder()
.label("master")
.searchPaths("/")
.uri("https://github.com/fake-user/fake-repository.git")
.build())
.build())
.enabledState("Enabled")
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:appplatform:ConfigServer default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

Properties of the Config Server resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>