get Enrollment Account Scope
suspend fun getEnrollmentAccountScope(argument: GetEnrollmentAccountScopePlainArgs): GetEnrollmentAccountScopeResult
Use this data source to access information about an existing Enrollment Account Billing Scope.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.billing.BillingFunctions;
import com.pulumi.azure.billing.inputs.GetEnrollmentAccountScopeArgs;
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 = BillingFunctions.getEnrollmentAccountScope(GetEnrollmentAccountScopeArgs.builder()
.billingAccountName("existing")
.enrollmentAccountName("existing")
.build());
ctx.export("id", example.applyValue(getEnrollmentAccountScopeResult -> getEnrollmentAccountScopeResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getEnrollmentAccountScope.
Parameters
argument
A collection of arguments for invoking getEnrollmentAccountScope.
suspend fun getEnrollmentAccountScope(billingAccountName: String, enrollmentAccountName: String): GetEnrollmentAccountScopeResult
Return
A collection of values returned by getEnrollmentAccountScope.
See also
Parameters
billing Account Name
The Billing Account Name of the Enterprise Account.
enrollment Account Name
The Enrollment Account Name in the above Enterprise Account.
suspend fun getEnrollmentAccountScope(argument: suspend GetEnrollmentAccountScopePlainArgsBuilder.() -> Unit): GetEnrollmentAccountScopeResult
Return
A collection of values returned by getEnrollmentAccountScope.
See also
Parameters
argument
Builder for com.pulumi.azure.billing.kotlin.inputs.GetEnrollmentAccountScopePlainArgs.