getProfile

Use this data source to access information about an existing CDN Profile.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cdn.CdnFunctions;
import com.pulumi.azure.cdn.inputs.GetProfileArgs;
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 example = CdnFunctions.getProfile(GetProfileArgs.builder()
.name("myfirstcdnprofile")
.resourceGroupName("example-resources")
.build());
ctx.export("cdnProfileId", example.applyValue(getProfileResult -> getProfileResult.id()));
}
}

Return

A collection of values returned by getProfile.

Parameters

argument

A collection of arguments for invoking getProfile.


suspend fun getProfile(name: String, resourceGroupName: String): GetProfileResult

Return

A collection of values returned by getProfile.

See also

Parameters

name

The name of the CDN Profile.

resourceGroupName

The name of the resource group in which the CDN Profile exists.


suspend fun getProfile(argument: suspend GetProfilePlainArgsBuilder.() -> Unit): GetProfileResult

Return

A collection of values returned by getProfile.

See also

Parameters

argument

Builder for com.pulumi.azure.cdn.kotlin.inputs.GetProfilePlainArgs.